It's OK. The problem is with windows file permissions. This problems occurs because your application can not access and read web.config file. Make the file accessible to IIS_IUSRS group. Just right click web.config and click properties, under security tab, add IIS_IUSRS. So what is this IIS_IUSRS thing? Your web site is like an exe file.
I'm working on a C# class library that needs to be able to read settings from the web.config or app.config file (depending on whether the DLL is referenced from an ASP.NET web application or a Wind...
Details: To enable the details of this specific error message to be viewable on remote >machines, please create a tag within a "web.config" configuration file >located in the root directory of the current web application.
Within an web.config -file in an ASP.NET-application some sections of config, like appSettings and connectionStrings, supports the attributes file and configSource. What is the difference between using the file -attribute and the configSource -attribute? When should you use which attribute and can you use both?
This can be the message you receive even when custom errors is turned off in web.config file. It can mean you have run out of free space on the drive that hosts the application.
Changing the web.config generally causes an application restart. If you really need your application to edit its own settings, then you should consider a different approach such as databasing the settings or creating an xml file with the editable settings.
Web.Config - Cannot read configuration file due to insufficient permissions Asked 13 years, 2 months ago Modified 7 years, 9 months ago Viewed 63k times
3 You can change the path for the web.config to its real path in applicationhost.config file. This file is located in /.vs/config folder. After changing the path in this file, save it and restart the project, it solved my issue. This is happening because I have different work stations, but the project is saving in different folders.