Why is an ASP.NET MVC configuration error with a subfolder as a web application that cannot load Site Master Type

Inside my MVC application, I have a subfolder named "Admin" that has been "Converted to Web Application". In IIS, the Admin folder was also configured as a web application.

After publishing my full application, I get a Configuration error message when I try to open Default.aspx in the Admin folder.

EDIT

I made the proposed change and added:

<location path="." inheritInChildApplications="false">
  <system.web>...</system.web>
</location>

Now I get a new error:

Parser Error: Description. An error occurred while analyzing the resource needed to service this request. Review the following parsing error details and modify the source file accordingly.

Parser: 'UI.Administration.Site'.

:

1: <% @Master Language = "#" CodeBehind = "Site.master.cs" Inherits = "UI.Administration.Site" % >

+3
1

web.config ( , ). SO .

+1

Source: https://habr.com/ru/post/1715199/


All Articles