Subject | FireBird Embedded DllNotFoundException |
---|---|
Author | omertasoft |
Post date | 2008-03-12T03:16:57Z |
Hi,
I read the archives and understand that most of the time, the above
issue has to do with fbembed.dll or one of icu*.dll files not being
in the right folder. My situation is a little different. I have an
msi package that does the installation which copies the fbembed.dll,
FireBirdClient.dll and 3 icu dll's to the applications bin folder.
Our clients successfully installed our app with the msi file, however
there is one specific client who has windows 2003 server intalled
boxes (2 of them), and the same application failed to create the
database on both machines (they are both fresh installs with .NET 2.0
installed), the error is as follows
----------------------------------------------------------
System.ApplicationException: Can not create database file. --->
System.DllNotFoundException: Unable to load DLL 'fbembed': The
specified module could not be found. (Exception from HRESULT:
0x8007007E)
at FB_965910463_Class.isc_create_database(Int32[] statusVector,
Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16
parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FB_965910463_Class.IFbClient.isc_create_database(Int32[]
statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle,
Int16 parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FirebirdSql.Data.Client.Embedded.FesDatabase.CreateDatabase
(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String
database)
at
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.CreateDatabase
(DatabaseParameterBuffer dpb)
at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase
(String connectionString, Int32 pageSize, Boolean forcedWrites,
Boolean overwrite)
at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase
(String connectionString)
at Database.DBUtility.CreateFireBirdDB()
----------------------------------------------------------
I checked the application folder and all 5 dll's are in the folder
(fbembed, FireBirdClient and 3 icu's)
Since it only happened in one client but in both machines I suspected
if there are any issues related to windows 2003 server (I am not sure
if any of my other clients use that server so I can't say if somebody
else had it working on that configuration), any input will be greatly
appreciated. What else might be causing the problem?
Thanks,
Vito,
I read the archives and understand that most of the time, the above
issue has to do with fbembed.dll or one of icu*.dll files not being
in the right folder. My situation is a little different. I have an
msi package that does the installation which copies the fbembed.dll,
FireBirdClient.dll and 3 icu dll's to the applications bin folder.
Our clients successfully installed our app with the msi file, however
there is one specific client who has windows 2003 server intalled
boxes (2 of them), and the same application failed to create the
database on both machines (they are both fresh installs with .NET 2.0
installed), the error is as follows
----------------------------------------------------------
System.ApplicationException: Can not create database file. --->
System.DllNotFoundException: Unable to load DLL 'fbembed': The
specified module could not be found. (Exception from HRESULT:
0x8007007E)
at FB_965910463_Class.isc_create_database(Int32[] statusVector,
Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16
parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FB_965910463_Class.IFbClient.isc_create_database(Int32[]
statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle,
Int16 parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FirebirdSql.Data.Client.Embedded.FesDatabase.CreateDatabase
(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String
database)
at
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.CreateDatabase
(DatabaseParameterBuffer dpb)
at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase
(String connectionString, Int32 pageSize, Boolean forcedWrites,
Boolean overwrite)
at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase
(String connectionString)
at Database.DBUtility.CreateFireBirdDB()
----------------------------------------------------------
I checked the application folder and all 5 dll's are in the folder
(fbembed, FireBirdClient and 3 icu's)
Since it only happened in one client but in both machines I suspected
if there are any issues related to windows 2003 server (I am not sure
if any of my other clients use that server so I can't say if somebody
else had it working on that configuration), any input will be greatly
appreciated. What else might be causing the problem?
Thanks,
Vito,