allowDefinition='MachineToApplication' msbuild error

后端 未结 12 1553
后悔当初
后悔当初 2020-12-24 10:51

We have a ASP.NET MVC with 4-5 different build configurations. Whenever we change the build configuration, we need to delete the obj folder for the web project, since we get

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 11:42

    That error indicates that you are trying to something specific to an application at an IIS tree level that isn't defined as an application. For example if you try to do app-level functions in a web.config in a virtual directory, you will get that error. You need to find the path you are deploying to and make sure that it is defined in IIS as an application vs a folder or vdir.

提交回复
热议问题