开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜