卡西尼vs IIS身份验证问题 [英] Cassini vs IIS Authentication Issue

查看:326
本文介绍了卡西尼vs IIS身份验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net 4.0中有一个C#Web服务。 Web服务将在UNC路径上创建一个文件。如果我让Visual Studio中的Cassini Web服务器进行身份验证,则可以正常工作。但是,如果我将应用程序更改为使用IIS(Windows 7),则不会创建该文件,但不会报告任何错误。

I have a C# webservice in .net 4.0. The webservice will create a file on a UNC path. If I let the Cassini web server in visual studio do the authentication it works fine. But if I change the application to use IIS (Windows 7) then the file doesn't get created but no error is reported.

如果我更改生成的位置文件到本地驱动器,然后Cassini和IIS都可以正常工作,但是只有Cassini Web服务器才能在UNC路径上工作。

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.

我只能猜测身份验证是问题所在相关,我尝试了以下各种组合;

I can only guess at the issue being authentication related, I've tried various combinations of the following;


  • UNC路径允许所有人完全访问

  • 在IIS Windows身份验证中

  • 在IIS匿名身份验证中

我的Windows帐户有权创建此文件。

My windows account has rights to create this file.

我没有尝试过用户模拟,也没有尝试将匿名凭据更改为具有更多权限的东西。

I haven't tried user impersonation and I haven't tried changing the anonymous credentials to something with more rights.

有人知道Cassini Web服务器和IIS之间的安全性差异会导致这些问题吗?

Does anyone know of security related differences between the Cassini web server and IIS which would cause these issues?

非常感谢,
Mike

Many thanks, Mike

解决方案

问题似乎出在应用程序池的标识上。

The problem seems to be the identity of the Application Pool.

检查它。

这篇关于卡西尼vs IIS身份验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆