我继承了一些 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