Urgent - Windows Service Network Resource Access Issue

G

Guest

I did not find the right forum to post this issue, please excuse me for this.
But I need the help here very badly.

I am having a Windows Service in .NET which is accessing a MDB file which is
kept on the network drive. If I run the code as a Windows Application I can
access the database file. BUt when I run the Windows Service I get following
error-
"The Microsoft Jet database engine cannot open the file
'\\208it-sosadev6\TempRights\RDSTablesTest.mdb'. It is already opened
exclusively by another user, or you need permission to view its data."

I am running this service as NetworkService account and using the username
and password as my NT userid and password. I also have full control to the
folder where the service is connection to. But looks like some how windows
service is not able to connect to the netwrok resource.
I am using following code -
this.serviceProcessInstaller1.Account =
System.ServiceProcess.ServiceAccount.NetworkService;
this.serviceProcessInstaller1.Password = "MyPassword";
this.serviceProcessInstaller1.Username = @"domain_name\NTUserName";

I went through the resources available at the internet but most of them
talking about giving access to ISUER or IWAM user access to the network
resource. But I am running the windows service, which account should have
access to the netwrok resource.

I would appreciate if some can help me out.

Thanks,
Dinoo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top