问题
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