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

落花浮王杯 提交于 2019-12-11 13:57:28

问题


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 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?


回答1:


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.



来源:https://stackoverflow.com/questions/5126490/can-i-set-identity-of-my-wcf-service-to-run-as-network-service-so-it-can-reach

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!