J
John
Hi
I am opening a connection on a shared db as below which works fine when used
in a vb.net win app.
Conn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=F:\Events Data\Events Data.mdb;User Id=admin;Password=;")
The problem is that as soon as I turn the app into a service or run it using
windows scheduler I get error on conn.open statement. The error is
'F:\Events Data\Events Data.mdb' is an invalid path, please check that the
path is correct...or something on those lines. If I run it as service on a
standalone PC then that works. So apparently db connection have different
rules for a standard win app and services with a db shared over a lan.
How can I make the code work as a service?
Thanks
Regards
I am opening a connection on a shared db as below which works fine when used
in a vb.net win app.
Conn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=F:\Events Data\Events Data.mdb;User Id=admin;Password=;")
The problem is that as soon as I turn the app into a service or run it using
windows scheduler I get error on conn.open statement. The error is
'F:\Events Data\Events Data.mdb' is an invalid path, please check that the
path is correct...or something on those lines. If I run it as service on a
standalone PC then that works. So apparently db connection have different
rules for a standard win app and services with a db shared over a lan.
How can I make the code work as a service?
Thanks
Regards