我正在尝试在我们的服务器中部署asp.net应用程序,而我收到以下错误.
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 63: ASP.NET to identify an incoming user.
Line 64: -->
Line 65: <authentication mode="Windows"/>
Line 66: <!--<forms loginUrl="~/SCR.UI/Login1.aspx"/>
Line 67: </authentication>-->
Source File: D:\BarclaysPayamentManagementSystem\scr.ui\web.config Line: 65
Run Code Online (Sandbox Code Playgroud)
是什么原因以及如何解决?
请帮忙
Árv*_*gép 17
尝试浏览asp.net应用程序时可能会出现此错误.
调试信息显示"此错误可能是由于未在IIS中将应用程序配置为虚拟目录引起的."
但是,此错误主要发生在2个方案中.
要解决此问题,请右键单击虚拟目录 - 选择属性,然后单击"应用程序"标签和文本框旁边的"创建".它将使用虚拟目录的名称自动创建"应用程序".现在可以访问该应用程序.
如果我们想要保护对子目录文件的访问(例如,目录是admin并且我们希望保护管理页面免受非协作用户的访问),我们通常会在子目录中添加web.config.