Win7 With IIS7 Error <authentication mode="Windows"> (转载)

 

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 49:             ASP.NET to identify an incoming user. 
Line 50:         -->
Line 51:         <authentication mode="None" />
Line 52:         <!--
Line 53:             The <customErrors> section enables configuration 

Source File: H:\Homepape\web1\web.config    Line: 51


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

“/”应用程序中的服务器错误

<authentication  mode="Windows" />

错误提示:
引用内容

“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

分析器错误信息: 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。

源错误:

行 43:            它为成员站点提供单独登录和核心配置文件服务。
行 44:     -->
行 45:     <authentication mode="Windows" />
行 46:
行 47:     <!--  授权  

源文件: anywolfs\asp.net\web.config    行: 45

显示其他配置错误:

在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。 (anywolfs\asp.net\web.config     line 82)
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832



百度上一搜,,还真不少人有问题,还好,解决方法非常简单:
如下:
分析:没有把程序目录设为虚拟目录。
打开管理工具--Internet 信息服务,找到我的网站下的我的asp.net文件夹,右键选属性,在 "应用程序设置"这里,点一下 创建 ,给它分配和站点相同的程序池,确定,,ok了
11366722 [0]主群技术群
94730872 [1]VC+C#技术群
16957498 [2]VC+C#技术群
96159885 [3]VC+C#技术群
94731267 [1]JAVA技术群
94731343 [2]JAVA技术群
80458412 [3]JAVA技术群
posted @ 2010-02-20 23:09  雨城  阅读(4177)  评论(1编辑  收藏  举报