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

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.
Number of things to check/try:
Set the application pool to ASP.NET 4.0. Make sure the application is set to v4.0 as well. Then restart IIS.
Add the following key to <system.webServer> section of Web.Config:
<modules runAllManagedModulesForAllRequests="true" />
Check that the file %userprofile%\documents\IISexpress\config\applicationHost.config exists and the application has the necessary permissions to access it. (IIS Express)
Check the app pool "run as user" and ensure it has rights to the web site directory.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With