【发布时间】:2015-05-26 01:31:04
【问题描述】:
最近,
我开发了一个迷你站点,并且不得不在我们的一个主要项目中部署该站点。
我所做的是,我复制了整个迷你项目并粘贴到主项目中。当我尝试运行迷你项目时,我得到了错误
*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 文件中的第 45 行生成的。代码所在的位置
<profile defaultProvider="DefaultProfileProvider">
我不知道错误是什么。我也尝试在网上搜索该问题,并从here 获得了一个链接,但它也没有帮助我。
请提出一些对您有帮助的建议。如果我必须进行一些更改,也请告诉我。
【问题讨论】:
标签: c# asp.net configuration web-config