Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applicationhost.config is missing

Tags:

azure

I've been encountering this problem whenever I try adding a role to my Azure Cloud Project.

enter image description here

The thing is that whenever I update to an older revision of my code, it works fine. It isnt until I try adding a new role or even removing a role and readding it is when I get an error. Even on new projects I cannot get a role added.

like image 318
Moe Bataineh Avatar asked Jul 10 '26 04:07

Moe Bataineh


1 Answers

Number of things to check/try:

  1. Set the application pool to ASP.NET 4.0. Make sure the application is set to v4.0 as well. Then restart IIS.

  2. Add the following key to <system.webServer> section of Web.Config:

    <modules runAllManagedModulesForAllRequests="true" />

  3. Check that the file %userprofile%\documents\IISexpress\config\applicationHost.config exists and the application has the necessary permissions to access it. (IIS Express)

  4. Check the app pool "run as user" and ensure it has rights to the web site directory.

  5. Try running VS in administrator mode and see if debug works. (right click the shortcut and select "run as administrator".

Failing the above post the contents of the file from step 3.

like image 55
kestrelb Avatar answered Jul 11 '26 19:07

kestrelb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!