web.config中的ASP web错误 [英] ASP web error in web.config

查看:69
本文介绍了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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆