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
application.

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.
Hints:
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:

<Exception>

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

<StackTrace>

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

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

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

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

</StackTrace>

<InnerException>

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

<StackTrace>

at
FirebirdSql.Data.Client.Embedded.FesDatabase.ParseStatusVector(Int32[]
statusVector)

at
FirebirdSql.Data.Client.Embedded.FesDatabase.Attach(DatabaseParameterBuf\
fer dpb, String dataSource, Int32 port, String database)

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

</StackTrace>

</InnerException>

</Exception>


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]