开发者

Can I set identity of my WCF service to run as 'Network Service' so it can reach shared network folders?

开发者 https://www.devze.com 2023-02-13 19:13 出处:网络
When debugging WCF service I need to use the remote share that stores our test data. But, since I host it on a local machine in IIS5 it doesn\'t have something like an application pool identity as fou

When debugging WCF service I need to use the remote share that stores our test data. But, since I host it on a local machine in IIS5 it doesn't have something like an application pool identity as found in IIS6 or 7, so the process开发者_StackOverflow中文版 running my WCF doesn't have permissions to reach it.

How can I configure my WCF service to use a Network Identity so I can have access to shared folders in network?


You can try to configure it in machine.config. Try to set processModel element to:

<processModel userName="Network Service" password="AutoGenerate" ... />

It will affect all ASP.NET applications hosted in IIS.

0

精彩评论

暂无评论...
验证码 换一张
取 消