不能摆脱它是使用注册为allowDefinition ='MachineToApplication'的一个部分超出应用程序级别的错误 [英] Can't get rid of It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

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

问题描述

我知道这个话题在这里讨论了几次,但我看了他们,我不相信它们适用于我的方案。我增加了以下到我的web.config:

I know this topic is discussed several times here but I read them and I don't believe they apply to my scenario. I added the following to my web.config:

<location path="Admin/default.aspx">
    <system.web>
      <authorization>
        <allow roles="Customer Service Admin" />
        <deny users="*"/>
      </authorization>

和我开始得到错误。我看着这个在其他等职位,我发现了另一个web.config中越往上账户中的子文件夹,但我删除了它。有没有其他的web.config文件。我也做了其他事情,如删除obj的文件,但我不断收到此错误。我正在我的IIS本地防爆preSS。还能有什么呢?

And I started getting the error. I looked at the other SO posts on this and I found another web.config higher up in the Account subfolder but I deleted it. There are no other web.config files. I have done the other things like deleting the obj file but I keep getting this error. I am running i IIS Express locally. What else could it be?

推荐答案

但问题是不同于任何其他的SO帖子这个错误。该错误是由两个部分的system.web在web.config中引起

The problem was unlike in any of the other SO Posts on this error. The error was caused by two system.web sections in the web.config

这篇关于不能摆脱它是使用注册为allowDefinition ='MachineToApplication'的一个部分超出应用程序级别的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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