本文介绍了web.config中的ASP web错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网络应用程序出现问题。下面是错误...希望有人可以帮助我...顺便说一句,我在这里使用Dreamweaver而不是Visual Studio
I am having problem with my web application. below is the error... hope someone could help me out here... by the way, i am using dreamweaver here and not Visual Studio
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 9: <system.web> Line 10: <customErrors mode="Off" /> Line 11: <authentication mode="Forms"> Line 12: <forms name=".ASPXAUTH" loginUrl="admin/login.aspx"/> Line 13: </authentication> Source File: C:\inetpub\wwwroot\cristy\dotnetnewsv1.2\web.config Line: 11推荐答案
此错误可能是由于虚拟目录未配置为IIS中的应用程序造成的。 您可以拥有web.config文件对于子目录。但是,某些属性无法在子目录的web.config中设置,例如身份验证,会话状态。原因是,除非子目录也配置为应用程序,否则无法在子目录级别覆盖这些设置。 原始来源:此处 [ ^ ]。 --Amit This error can be caused by a virtual directory not being configured as an application in IIS. you can have web.config file for the sub-directory. However, there are certain properties which cannot be set in the web.config of the sub-directory such as authentication, session state. The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application. Original Source : here[^]. --Amit
更多推荐
web.config中的ASP web错误
发布评论