简体   繁体   English

卡西尼vs IIS身份验证问题

[英]Cassini vs IIS Authentication Issue

I have a C# webservice in .net 4.0. 我在.net 4.0中有一个C#Web服务。 The webservice will create a file on a UNC path. Web服务将在UNC路径上创建一个文件。 If I let the Cassini web server in visual studio do the authentication it works fine. 如果我让Visual Studio中的Cassini Web服务器进行身份验证,则可以正常工作。 But if I change the application to use IIS (Windows 7) then the file doesn't get created but no error is reported. 但是,如果我将应用程序更改为使用IIS(Windows 7),则不会创建该文件,但不会报告任何错误。

If I change the location of the generated file to a local drive then Cassini and IIS both work fine, but only the Cassini web server will work for a UNC path. 如果我将生成的文件的位置更改为本地驱动器,那么Cassini和IIS都可以正常工作,但是只有Cassini Web服务器才能在UNC路径下工作。

I can only guess at the issue being authentication related, I've tried various combinations of the following; 我只能猜测与身份验证相关的问题,我尝试了以下几种组合:

  • UNC path allow Everyone full access UNC路径允许所有人完全访问
  • In IIS Windows Authentication 在IIS Windows身份验证中
  • In IIS Anonymous Authentication 在IIS匿名身份验证中

My windows account has rights to create this file. 我的Windows帐户有权创建此文件。

I haven't tried user impersonation and I haven't tried changing the anonymous credentials to something with more rights. 我没有尝试过模拟用户,也没有尝试将匿名凭据更改为具有更多权限的东西。

Does anyone know of security related differences between the Cassini web server and IIS which would cause these issues? 有谁知道Cassini Web服务器和IIS之间与安全相关的差异会导致这些问题?

Many thanks, Mike 非常感谢,迈克

The problem seems to be the identity of the Application Pool. 问题似乎是应用程序池的身份。

Check it. 核实。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM