ASP.Net - 它是使用注册为allowDefinition ='MachineToApplication'的部分应用程序级别之外的错误 [英] ASP.Net - It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

查看:124
本文介绍了ASP.Net - 它是使用注册为allowDefinition ='MachineToApplication'的部分应用程序级别之外的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取有关我们在我们的开发环境中运行的Intranet应用程序这个错误,我不知道去哪里/寻找一个解决方案。采用做工精细的应用,但它与开发其他球队共享的服务器上运行,我们遇到了麻烦跟踪误差(没有更新是由我的团队对应用程序进行,它突然停止工作)。

Getting this error on an intranet application we have running in our development environment, and I'm not sure where to go/look for a solution. The application used to work fine, however it is run on a shared server with another team of developers and we're having trouble tracking down the error (no updates were made to the application by my team, it suddenly stopped working).

我们正在运行Windows Server 2003和IIS 6.0。如果我打开我的机器上的解决方案,但是,我收到的Visual Studio解决方案百分点错误这条线在web.config,但是我相信这是一个比较标准的制定和我们实际上在另一个环境中运行这个(同一台服务器/ IIS设置)

We're running Windows Server 2003 and IIS 6.0. If I open the solution on my machine, however, I receive an error in Visual Studio solution points to this line in the web.config, however I believe this is a relatively standard setting and we actually have this running in another environment (same server/IIS set up)

<authentication mode="Windows" />

错误读取

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.

我也改变了&LT;&的System.Web GT; 服务器上的web.config中的部分包括&LT;的customErrors模式= 关/&GT; ,但奇怪的是,当我浏览到该网站我仍然得到自定义错误页...

I've also changed the <system.web> section of the web.config on the server to include <customErrors mode="Off"/>, however oddly enough when I navigate to the site I am still getting the custom error page...

我是比较新的IIS从不与Windows Server 2003工作有人能帮点我朝着正确的方向要么获得实际的错误,以便在浏览器中显示或如何解决由Visual Studio给我的错误?

I'm relatively new to IIS and never worked with Windows Server 2003. Can someone help point me in the right direction either to get the actual error so display in the browser or how to fix the error given to me by Visual Studio?

推荐答案

在Visual Studio中调出项目属性页。在解决方案资源管理项目节点上单击鼠标右键,然后单击属性。寻找网络选项卡并单击按钮来创建一个虚拟目录。

Bring up project properties page in Visual Studio. Right-click on project node in Solution Explorer and click properties. Look for the Web tab and click the button to create a virtual directory.

这篇关于ASP.Net - 它是使用注册为allowDefinition ='MachineToApplication'的部分应用程序级别之外的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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