如何解决"在'/'​​应用与QUOT服务器错误;错误? [英] How to resolve "Server Error in '/' Application" error?

查看:120
本文介绍了如何解决"在'/'​​应用与QUOT服务器错误;错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图来部署我们的服务器的asp.net应用程序,而我收到以下错误。

I am trying to deploy an asp.net application in our server while I am receiving the following error.

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

原因是什么,如何解决?

What is the reason and how to resolve it?

请帮忙


Please help


推荐答案

试图浏览一个asp.net应用程序时,您可能会收到此错误。

You may get this error when trying to browse an asp.net application.

调试信息显示,这个错误可以通过未被配置为在IIS中应用程序的虚拟目录引起的。

The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS."

不过,主要发生了2情景此错误。

However, this error occurs primarily out of 2 scenarios.


  1. 当你使用视觉studio.net创建一个新的Web应用程序,它会自动创建虚拟目录,并将其配置为应用程序。但是,如果您手动创建虚拟目录,它没有配置为应用程序,那么你将无法浏览应用程序,并可能会收到上述错误。你得到上述的调试信息,适用于这种情况。

要解决这个问题,用鼠标右键单击虚拟目录 - 选择属性,然后单击
创建旁边的应用程序标签和文本框。它会自动创建应用程序使用虚拟目录名。现在,应用程序可被访问。

To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.


  1. 当你在你的应用程序的子目录,你可以有子目录的web.config文件。不过,也有不能在子目录,例如身份验证的Web.config中设置的某些属性,会话状态(您可能会看到错误消息显示了认证或的sessionState在web.config声明的行号子目录的)。其原因是,这些设置不能在子目录级别覆盖除非(如在上述点提到的)子目录也被配置为应用程序。

晴我们在子目录web.config中添加的做法,如果我们想保护进入子目录的文件(例如,该目录是admin,我们希望保护unathorized用户管理页面)。

Mostly we have the practice of adding web.config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we wish to protect the admin pages from unathorized users).

这篇关于如何解决&QUOT;在'/'​​应用与QUOT服务器错误;错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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