Error: allowDefinition='MachineToApplication' beyond application level

做~自己de王妃 提交于 2019-12-19 07:58:30

问题


there are a ton of SO postings on this subject. by far, the solution seems to be to configure the directory in IIS as an application. Another common solution is to remove backup web.config files from folders in the root.

my problem is different because I'm running on IIS Express so there's no way to configure the folder as an application. what I've noticed is that every time I compile, there's a folder called obj in my root which causes the problem. So I have to manually remove it, every time.

@Valamas, in this post indicates he just scripted the removal of that folder but I'm thinking there's got to be a better way... the error occurs for me on this line:

<authentication mode="Forms">

but seems to occur in other instances. ideas anyone?


回答1:


You probably built the project under 'Release' and then reverted to 'Debug'. You should switch to 'Release' and perform Clean Solution: section registered as allowDefinition='MachineToApplication' beyond application level



来源:https://stackoverflow.com/questions/6986738/error-allowdefinition-machinetoapplication-beyond-application-level

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!