服务器错误'/'Application.confiquration错误 [英] Server Error in '/' Application.confiquration error

查看:57
本文介绍了服务器错误'/'Application.confiquration错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我浏览我的网站时,显示以下错误.我想从子文件夹浏览页面,并且我只有一个web.config文件,但仍然显示以下错误,请帮助我

解析器错误消息:使用超出应用程序级别注册为allowDefinition =''MachineToApplication''的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的.

源错误:

第68行:用于识别传入用户的ASP.NET.
第69行:->
第70行:< authentication mode ="Windows">
第71行:<!-
第72行:< customerrors>本节启用配置

When I browse my website following error is displayed.i want to browse the pages from subfolder,and I have only one web.config file ,still it gives following error,pls help me

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 68: ASP.NET to identify an incoming user.
Line 69: -->
Line 70: <authentication mode="Windows">
Line 71: <!--
Line 72: The <customerrors> section enables configuration

推荐答案

通常,在应用程序根文件夹中有多个Web.Config文件时,会发生这种情况. 只需检查您是否有多个.如果是这样,请删除重复的副本.

阅读此处解决的类似问题: ASP.NET 2.0& "allowDefinition =" MachineToApplication"错误消息 [ http://forums.asp.net/p/769696/769696.aspx [ ^ ]
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition=''MachineToApplication''" error message[^]

Other useful link that has similar issue discussed: http://forums.asp.net/p/769696/769696.aspx[^]


有时这是因为您尚未将虚拟目录配置为应用程序.

*打开IIS
*展开{机器名称}->网站
*为您的应用程序找到虚拟目录]
*在虚拟目录上单击鼠标右键->属性
*在虚拟目录"选项卡上,确保存在应用程序名称"条目
*在"Asp.Net"选项卡上,确保版本适用于您的应用程序
Sometimes this is because you haven''t configured the virtual directory to be an application

* Open IIS
* Expand {Machine Name} -> Web Sites
* Find the virtual directory for your application]
* Right mouse on virtual directory -> properties
* On the ''Virtual Directory'' tab, make sure there is an entry for ''Application Name''
* On the ''Asp.Net'' tab, make sure the version is correct for your application


对于IIS 7,很可能您需要将目录转换为应用程序在文件夹中有一个web.config.

打开IIS
转到您的网站,展开
目录中的属性
转换为应用程序
选择一个应用程序池,根据您的应用程序检查版本是否正确.
For IIS 7 is propably that you need to convert the Directory to Application in case you already have a web.config in your folder.

Open IIS
Go to your website, expand
Properties in your directory
Convert to Application
Select an application pool check the version is correct according with your application.


这篇关于服务器错误'/'Application.confiquration错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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