Missing Applicationhost.config

I ran into this issue when I am trying to add a role to an Azure Cloud project.

enter image description here

The thing is, whenever I update the old code of my code, it works great. It's not until I try to add a new role or even remove a role and read it when I get an error. Even in new projects, I can't get an additional role.

+3


source to share


1 answer


Number of checks / attempts:

  • Set the Application Pool for ASP.NET 4.0. Make sure the app is also installed to v4.0. Then restart IIS.

  • Add the following key to the section <system.webServer>

    in Web.Config:

    <modules runAllManagedModulesForAllRequests="true" />

  • Make sure the file %userprofile%\documents\IISexpress\config\applicationHost.config

    exists and the application has the required permissions to access it. (IIS Express)

  • Make sure the application pool is running as a user and make sure it has rights to the website directory.

  • Try starting VS in admin mode and see if debug works. (right click on the shortcut and select "run as administrator".



Failure to follow the above message file contents from step 3.

+1


source







All Articles