请帮我解读一个asp.net报错信息

来源:百度知道 编辑:UC知道 时间:2024/06/27 03:51:02
以下的报错信息是什么意思? 该怎么解决?
我在本地调试都好的,可是放到虚拟主机上就不行了。

Server Error in '/' Application.
--------------------------------------------------------------------------------

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 25: 以标识传入的用户。
Line 26: -->
Line 27: <authentication mode="Windows"/>
Line 28: <!--
Line 29: 如果在执行请求的过程中出现未处理的错误,

Source File: f:\www\suncanto\wwwroot\blogchat\we

你使用的是WINDOWS身份登录。可是IIS没有设置这个选项
打开IIS->默认网站->右键属性->目录安全性->匿名访问和身份验证控制->编辑->勾选上集成WINDOWS身份验证

以下是WEB.CONFIG的身份验证说明

<!-- 身份验证

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

"Forms"、 "Passport" 和 "None"

"None" 不执行身份验证。

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

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

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

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

使用cookies去指出授权用户。

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

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

-->

<authentication mode="Windows" />

你的错误信息翻译
服务器错误' / '应用。
-------------------------------------------------- ------------------------------

配置错误
描述:错误处理中发生的一个配置文件服务,需要这项要求。请审查的具体细节误差下面,并修改