Subject | PROGRAMDATA Error while trying to write to file |
---|---|
Author | Peter Morris |
Post date | 2008-02-20T14:28:20Z |
I install my database.gdb file to the CommonAppData folder, on Vista
this is
C:\ProgramData\MyCompany\MyApp\database.gdb
When I start my app I experience the following exception. Where on
Vista should I install my DB? I really need all users to share the
same DB. Note that I have the embeddedfb dll in my app folder so that
all DB access is local and no DB server is required.
How do I solve this? My restrictions are
01: I can't install a DB server (it's a single user app)
02: The file must be in a shared location so that multiple users can
install the app and use the same database.
Thanks
Pete
An unhandled exception of type
'FirebirdSql.Data.FirebirdClient.FbException' occurred in
FirebirdSql.Data.FirebirdClient.dll
Additional information: I/O error for file WriteFile
"C:\PROGRAMDATA\AIR SOFTWARE LTD\VELOCITY\DATABASE.GDB"
Error while trying to write to file
<stackTrace>
+ 0xc2 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnectionInternal.BeginTransaction(System.Data.IsolationLevel
level = Unspecified, string transactionName = null) + 0xb1 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginTransaction(System.Data.IsolationLevel
level = Unspecified, string transactionName = null) + 0x5f bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginTransaction(System.Data.IsolationLevel
level = Unspecified) + 0x20 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginDbTransaction(System.Data.IsolationLevel
isolationLevel = Unspecified) + 0x1e bytes
System.Data.dll!System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction()
+ 0xb bytes
</stackTrace>
this is
C:\ProgramData\MyCompany\MyApp\database.gdb
When I start my app I experience the following exception. Where on
Vista should I install my DB? I really need all users to share the
same DB. Note that I have the embeddedfb dll in my app folder so that
all DB access is local and no DB server is required.
How do I solve this? My restrictions are
01: I can't install a DB server (it's a single user app)
02: The file must be in a shared location so that multiple users can
install the app and use the same database.
Thanks
Pete
An unhandled exception of type
'FirebirdSql.Data.FirebirdClient.FbException' occurred in
FirebirdSql.Data.FirebirdClient.dll
Additional information: I/O error for file WriteFile
"C:\PROGRAMDATA\AIR SOFTWARE LTD\VELOCITY\DATABASE.GDB"
Error while trying to write to file
<stackTrace>
>FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbTransaction.BeginTransaction()
+ 0xc2 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnectionInternal.BeginTransaction(System.Data.IsolationLevel
level = Unspecified, string transactionName = null) + 0xb1 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginTransaction(System.Data.IsolationLevel
level = Unspecified, string transactionName = null) + 0x5f bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginTransaction(System.Data.IsolationLevel
level = Unspecified) + 0x20 bytes
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.BeginDbTransaction(System.Data.IsolationLevel
isolationLevel = Unspecified) + 0x1e bytes
System.Data.dll!System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction()
+ 0xb bytes
</stackTrace>