Trying to get a Windows Service to run an executable on a shared drive

前端 未结 4 1338
Happy的楠姐
Happy的楠姐 2021-01-20 23:34

I have c# that will run in a windows service. I\'m trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no pro

相关标签:
4条回答
  • 2021-01-20 23:54

    If the app on the shared drive is a .Net app, make sure it has sufficient trust.

    0 讨论(0)
  • 2021-01-20 23:55

    What account is the service running as?

    LocalSystem will only allow access to the local file system. If you want to access a network resource, you will have to run the service as a domain or network user.

    0 讨论(0)
  • 2021-01-20 23:55

    The account your service is running as likely does not have permission to access the shared drive. Try configuring it to run as a user with permission to the network via the services applet. Right click on the service, choose properties and set the account in the login tab.

    0 讨论(0)
  • 2021-01-21 00:01

    Have a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=471168&SiteID=1

    This should help.

    0 讨论(0)
提交回复
热议问题