使用注册为allowDefinition =' MachineToApplication'的部分是错误的。超越应用水平

时间:2015-07-13 13:36:36

标签: iis-7 asp.net-mvc-5

尝试通过visual studio将MVC应用程序发布到IIS服务器。

尝试运行时,我收到错误:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: 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.

Source Error: 


Line 20:     <httpRuntime targetFramework="4.5" />
Line 21:     <!---->
Line 22:     <authentication mode="Windows" />
Line 23:     <authorization>
Line 24:       <!--<deny users="?" />-->

有很多关于此的文章,但似乎无法解决这个问题。

我已经读过,当通过visual studio进行部署时,它将其部署为Web应用程序,因此无需转换,实际上甚至无法找到选项。

web.config位于C:\ inetpub \ wwwroot \ MyApp \中,无法查看视图或其他子文件夹中的任何其他内容。

真的坚持这个!

0 个答案:

没有答案