如何在asp.net中修复服务器错误? [英] how to fix server error in asp.net?

查看:121
本文介绍了如何在asp.net中修复服务器错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Server Error in '/demooniis' 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 16:     <compilation debug="true" targetFramework="4.0" />
Line 17:
Line 18:     <authentication mode="None">
Line 19:       <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 20:     </authentication>

推荐答案

为您的错误消息显示此错误可能是由于虚拟目录未被配置为IIS中的应用程序。,所以请检查您的IIS在哪里托管此应用程序是它配置为应用程序与否,错误显示您的虚拟目录未配置为应用程序,如果是,则钻机在 IIS 中的虚拟目录上单击并选择转换到应用程序,然后尝试再次浏览它。
as your error messages shows that "This error can be caused by a virtual directory not being configured as an application in IIS.", so please check your IIS where you host this application is it configured as Application or not, the error shows that your virtual directory is not configured as application, if so then right click on your virtual directory in IIS and select Convert to Application, then try to browse it again.


上面的错误消息表明在一个网站的子文件夹中有一个Web.config文件而不是一个这些配置元素无法在应用程序级别之外定义。
The above error message indicates that there is a Web.config file in one of the website's subfolders than has one of these configuration elements that cannot be defined beyond the application level.


这篇关于如何在asp.net中修复服务器错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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