我可以将 WCF 服务的标识设置为作为“网络服务”运行吗?所以它可以到达共享网络文件夹?
调试 WCF 服务时,我需要使用存储测试数据的远程共享。但是,由于我将其托管在 IIS5 中的本地计算机上,因此它没有 IIS6 或 7 中的应用程序池标识之类的内容,因此运行 WCF 的进程没有访问它的权限。
如何配置我的 WCF 服务以使用网络标识,以便我可以访问网络中的共享文件夹?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试在machine.config中进行配置。尝试将
processModel
元素设置为:它将影响 IIS 中托管的所有 ASP.NET 应用程序。
You can try to configure it in machine.config. Try to set
processModel
element to:It will affect all ASP.NET applications hosted in IIS.