在IIS中配置ASP.NET应用程序

BIB*_*IBD 2 asp.net iis iis-6 web-config

我继承了一些aspx(包括web.config文件),并收到以下错误.我为它创建了一个虚拟目录,但我不确定如何"将其配置为应用程序"?

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="Windows"/>
Line 52: 
Line 53:     <customErrors mode="Off"/>


Source File: C:\<MYPATH>\web.config    Line: 51 
Run Code Online (Sandbox Code Playgroud)

Joh*_*han 7

进入虚拟目录的属性,单击"虚拟目录"选项卡,然后单击"应用程序设置"下的"创建"按钮,然后将"执行权限"设置为"仅脚本"

还要检查ASP.NET选项卡,确保将其设置为适合您应用的版本.

最后,确保用于虚拟目录的应用程序池仅由使用相同版本的ASP.NET的其他站点和虚拟目录使用.