错误:allowDefinition='MachineToApplication' 超出应用程序级别 [英] Error: allowDefinition='MachineToApplication' beyond application level

查看:26
本文介绍了错误:allowDefinition='MachineToApplication' 超出应用程序级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了 ASP.Net 中的在线项目.运行应用程序时出现错误

I have downloaded the online project in ASP.Net. While running application I get an error

在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的部分是错误的.此错误可能是由于虚拟目录未在 IIS 中配置为应用程序所致.

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.

我应该在 web.config 或其他地方进行哪些更改才能使其正常工作?

What changes should i make in web.config or elsewhere to make this work?

推荐答案

我刚刚遇到了这种喜悦".它似乎是在我以发布模式发布 Web 应用程序后才出现的.

I've just encountered this "delight". It seems to present itself just after I've published a web application in release mode.

持续解决我发现的问题的唯一方法是遵循以下清单:

The only way to consistently get round the issue that I've found is to follow this checklist:

  1. 清洁解决方案,同时您的解决方案配置为发布模式.
  2. 清洁解决方案,同时您的解决方案配置为调试模式.
  3. 在您的解决方案配置为调试模式时进行构建.

这篇关于错误:allowDefinition='MachineToApplication' 超出应用程序级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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