I was using the System.Web.Configuration. WebConfiguration class to open the configuration for the site from one of my logic dll’s and I got the wonderful error An error occurred loading a configuration file: Failed to map the path ‘/’.
I freaked out for a second, until I put more thought into it. This is running fine in production! What is the difference with my machine and the server?
Oh! My Visual Studio is running under UAC with limited privileges since I am in Windows 7. DUH!
So, I restarted Visual Studio 2010 under “Run as Administrator” and problem solved. So if you are on Vista or Windows 7, that’s the issue.
NOTE: If you develop with administrative rights, be careful you don’t make development mistakes that assume everyone will run your program as an admin. i.e. writing to program files directory, root directory, etc.
Happy Coding!
Read More:
- Solution to “An error occurred while loading the archive” appears when decompressing the rar file compressed package
- An error occurred when installing vs2017: failed to verify the signature of the installation program list
- OpenGL environment configuration under VS2010 / vs2012 / vs2015
- Vs + QT reports an error “vs cannot open the source file qchartview”
- An error occurred while loading commit signatures
- Vs2019 + QT parses the XML file and reports an error at doc.setcontent (& file)
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- OpenGL Programming Guide 8th Edition 9th Edition vs2015 vs2017 configuration method
- Vs2013 package deployment error: isdev: error – 6003: an error occurred streaming
- Vue introduction path is correct, but it always reports an error: already included file name‘ ××ב differs from file name ‘ ××ב only in casing.
- Easynvr operation log reports an error. Fatal error: concurrent map read and map write troubleshooting
- Vs2019: solution nvcc total: cannot find compiler‘ cl.exe ‘ in PATH
- Android 9 (P) recovery upgrade Map of ‘@/cache/recovery/block.map’ failed problem analysis guide
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Vs configuration of OpenGL development environment: configuration of glfw library and glad Library
- Failed to upload report – An error has occurred. Please contact your administrator
- Take over the project, the project path is inconsistent with the native UE4 path and the solution of Failed to open descriptor file ..//..//..//UE4/UE4.uproject
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- After modifying the Tomcat configuration file in development, the modified configuration file will be automatically restored after ecplise starts Tomcat
- Vs Code Python relative path error