By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,529 Members | 1,826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,529 IT Pros & Developers. It's quick & easy.

Urgent - Windows Service Network Resource Access Issue

P: n/a
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.NetworkServic e;
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

Aug 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.