471,092 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Urgent - Windows Service Network Resource Access Issue

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
0 1175

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Jan Gregor | last post: by
1 post views Thread by srivalli chavali via DotNetMonster.com | last post: by
3 posts views Thread by Sachin_M | last post: by
4 posts views Thread by Rajeev | last post: by
2 posts views Thread by Peter O'Reilly | last post: by
2 posts views Thread by Joseph Geretz | last post: by
2 posts views Thread by =?ISO-8859-1?B?RulybmFz?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.