主页 » 技术技巧 » authentication mode=”windows”报错解决

authentication mode=”windows”报错解决

2008-12-18添加留言

安装新版 Web Data Administrator 遇到的问题:

登陆界面报错,下列:

configuration error
description: an error occurred during the processing of a configuration file required to service this request. please review the specific error details below and modify your configuration file appropriately.
parser error message: it is an error to use a section registered as allowdefinition=machinetoapplication beyond application level. this error can be caused by a virtual directory not being configured as an application in iis.   
Source Error:
Line 30:     –>
Line 31:
Line 32: <authentication mode=”Windows” />
Line 33:   
Line 34:     <!– AUTHORIZATION 

报错的是这一行“<authentication mode=”windows” />”

解决方法:

在 IIS 中把项目文件夹设定为虚拟目录就可以了

————————————————————————————-

<!– 身份验证

此节设置应用程序的身份验证策略。可能的模式是 “Windows”、

“Forms”、 “Passport” 和 “None”

“None” 不执行身份验证。

“Windows” IIS 根据应用程序的设置执行身份验证 包含全部的IIS身份验证,此外,NTFS在文件和目录上的权限将决定对目录中资源的访问。

(基本、简要或集成 Windows)。在 IIS 中必须禁用匿名访问。

“Forms” 您为用户提供一个输入凭据的自定义窗体(Web 页),然后

在您的应用程序中验证他们的身份。用户凭据标记存储在 Cookie 中。

使用cookies去指出授权用户。

“Passport” 身份验证是通过 Microsoft 的集中身份验证服务执行的,

它为成员站点提供单独登录和核心配置文件服务。

–>

发表评论