Subject operating system directive CreateFile failed
Author psharrma_84
I am using FireBird embedded in .Net environment.
fbembed.dll v1.5.2.4731
FirebirdSql.Data.FirebirdClient.dll v2.1.0.0

In my scenario windows application and window service access the
same database file one at a time. App & service both communicate with
each other using named pipes, to signal startup and shutdown of

When Application start up it waits for Window Service to release the
handle and clear the pool. Even then I can get the same error saying
"operating system directive CreateFile failed". I tried to insert the
delays between "getting connection pool cleared confirmation" by service
and "connecting to the database" by application that reduces the problem
but not completely resolve the issue.
1) I can reproduce this issue more frequently on Windows Vista rather
than on Windows Xp
2) I tried to use Process Monitor, and found there was no CreateFile
failed call for my database file.
3) One more fact which supports the above point is that I have seen this
error even when the Window Service is not running also.
4) Following is the stack trace for this exception:


<Message>operating system directive CreateFile failed</Message>


at FirebirdSql.Data.Firebird.FbConnectionInternal.Connect()

at FirebirdSql.Data.Firebird.FbConnectionPool.Create()

at FirebirdSql.Data.Firebird.FbConnectionPool.CheckOut()

at FirebirdSql.Data.Firebird.FbConnection.Open()



<Message>Exception of type
'FirebirdSql.Data.Common.IscException' was thrown.</Message>



fer dpb, String dataSource, Int32 port, String database)





Is there any way by which i can get detailed information why/what
resource this error is occurring?
Is there any tracing available in firebird, which can help me identify
the root cause?

Thanks in advance.

[Non-text portions of this message have been removed]