G
Guest
I have written an application in C# that runs as a service to connect to an Access database that resides on a mapped drive. I have Read, Write, Create and Modify permission on the folder
I am using the System.Data.OleDb namespace with the following connection string
In an xml file I have an element with the string Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase Locking Mode=1;Jet OLEDBatabase Password=dax12;Data Source="F:\da.mdb";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
If I try to connect to the database through the IDE I am able to do it. If I run the service, I get the following error: " 'F:\da.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
I have tried to run the service under another account and that doesn’t work. The account is a member of Administrators group. I've also tried changing the permission set to FullTrust in LocalIntranet_Zone Code Group under Machine using the .NET 1.1 Configuration Console
What else am I missing? Could anyone out there help me please??
Thanks very much in advance
I am using the System.Data.OleDb namespace with the following connection string
In an xml file I have an element with the string Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase Locking Mode=1;Jet OLEDBatabase Password=dax12;Data Source="F:\da.mdb";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False
If I try to connect to the database through the IDE I am able to do it. If I run the service, I get the following error: " 'F:\da.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
I have tried to run the service under another account and that doesn’t work. The account is a member of Administrators group. I've also tried changing the permission set to FullTrust in LocalIntranet_Zone Code Group under Machine using the .NET 1.1 Configuration Console
What else am I missing? Could anyone out there help me please??
Thanks very much in advance