尽管有应用程序池凭据,WCF 服务仍无法写入网络位置
创建了一个由 Silverlight 应用程序调用的 WCF 服务。尽管 Silverlight 应用程序显然正在运行客户端浏览器,但两者都驻留在同一台计算机上。
我在 IIS 7.5 中为该服务创建了一个单独的应用程序池,并告诉它以特定的域用户身份运行,该用户有权访问我们需要在其中创建文件的网络共享。我已经测试了登录到特定目录并创建了一个文件。但是,WCF 服务中的调用无法创建该文件。
顺便说一句,我们应用程序的用户不是 Active Directory 帐户——它们是在其他地方配置的...因此,无论谁登录,该服务都会以其自己的帐户运行。
我用 Google 搜索过这一点,但没有成功,因为大多数提示是给应用程序池授予权限。既然编程界的天才都在这里闲逛,我希望能取得更好的成绩。 :)
Created a WCF service that is being called by a Silverlight app. Both reside on the same machine, though the Silverlight app is obviously running the client browser.
I have created a separate Application Pool for the Service in IIS 7.5 and told it to run as a specific domain user that has rights to the network share where we need to create a file. I've tested logging into the specific directory and created a file. However, the call in the WCF service CANNOT create the file.
Incidentally, the user of our application is not an Active Directory account -- they are configured elsewhere... so the Service runs as it's own account in spite of who is logged in.
I've Googled this to no avail as most of the hints are to give rights to the App Pool. Since the geniuses of the programming world hang out here, I'm hoping to get better results. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看此处。还要三次检查正在传递到服务中的凭据。
Take a look here. Also triple check what credential is being passed over into the service.