WebConfigurationManager.OpenWebConfiguration throws Failed to map the path ‘/’.

I upgraded to Visual Studio 2010 and am running my web project and get this awesome beauty…

WebConfigurationManager.OpenWebConfiguration throws Failed to map the path ‘/’.

So, what to do? Well, I finally realized I am running on Windows 7, and was not running my Visual Studio as “admin”.

I ran the VS as admin, and boom…it worked. Stupid , but worked.

0 Replies to “WebConfigurationManager.OpenWebConfiguration throws Failed to map the path ‘/’.”

    1. Maybe there is another cause. Turn off User Access Control – Set your computer to not prompt for any elevation, then try again. If that works, something went wrong when you tried to run as admin.

Leave a Reply

Your email address will not be published. Required fields are marked *