Answer by Iman Bahrampour for Cannot read configuration file due to...
In some cases the web.config file isn't in the correct format.Open the web.config file and check all XML tags.(For example, by putting the following codes in the web.config, if the project is executed,...
View ArticleAnswer by David Lindon for Cannot read configuration file due to insufficient...
In my case the was set to run on a mapped drive. Changing the site to point to the UNC path worked.
View ArticleCannot read configuration file due to insufficient permissions
I've recently encountered an error trying to host my asp.net site with IIS. I have found a solution that many swear by.Solution:Add IIS_IUSRS with Read permission on files in the folderChange IIS...
View ArticleAnswer by Erik Funkenbusch for Cannot read configuration file due to...
You don't have to change anything in your web.config.The problem is file system permissions. Your file permissions do not allow the IIS_IUSRS user to access web.config (or probably any of the files)....
View ArticleAnswer by Afshin Gh for Cannot read configuration file due to insufficient...
There is no problem with your web.config. Your web site runs under a process. In iis you can define the identity of that process. The identity that your web site's application pool runs as (Network...
View ArticleAnswer by Luis for Cannot read configuration file due to insufficient...
For some reason your web.config is set as read only. Uncheck the readonly option of web.config file.
View ArticleAnswer by Quinny for Cannot read configuration file due to insufficient...
Go to the parent folder, right-click and select Properties. Select the Security tab, edit the permissions and Add. Click on Advanced and the Find Now. Select IIS_IUSRS and click OK and OK again. Make...
View ArticleAnswer by Jarrod for Cannot read configuration file due to insufficient...
I had what appeared to be the same permissions issue on the web.config file.However, my problem was caused by IIS failing to load the config file because it contained URL rewrite rules and I hadn't...
View ArticleAnswer by Sniipe for Cannot read configuration file due to insufficient...
I used subst to create a mapping from D: to C: in order to keep the same setup as other developers in the team. This also gave me same errors as described. Removing this fixed it for me.
View ArticleAnswer by amd for Cannot read configuration file due to insufficient permissions
Editor's note: Doing what this answer says is DANGEROUS! The LocalSystem account is a ...Completely trusted account, more so than the administrator account. There is nothing on a single box that this...
View ArticleAnswer by coberlin for Cannot read configuration file due to insufficient...
I needed to add permissions to IUSR (in addition to ISS-IUSRS, as others have suggested).(See...
View ArticleAnswer by rob for Cannot read configuration file due to insufficient permissions
We had a website running with a specific identity in the apppool, only after giving that user read access to the folder containing the web.config would it work.We tracked this down after adding the...
View ArticleAnswer by Earl for Cannot read configuration file due to insufficient...
I was receiving the "Cannot read configuration file due to insufficient permissions" as well. Turns out the ISAPI and CGI Restrictions in IIS for both ASP.NET 4.0 32bit and 64bit was set to deny....
View ArticleAnswer by Rafael Emshoff for Cannot read configuration file due to...
For me the error turned up during Debugging on my local machine and turned out to be related to the base web.config, which is initiated by the .NET Framework when compiling the website. My...
View ArticleAnswer by jshoaf for Cannot read configuration file due to insufficient...
Changing the Process Model Identity to LocalSystem fixed this issue for me. You can find this setting if you right click on the application pool and chose "Advanced Settings". I'm running IIS 7.5.
View ArticleAnswer by Carlos for Cannot read configuration file due to insufficient...
When you grant permissions to IIS_IUSRS you should check that in the IIS/Authentication section of your Web Application, the Anonymous Authentication Credentials uses Application Pool Identity and not...
View ArticleAnswer by gbs for Cannot read configuration file due to insufficient permissions
Had this issue with a Virtual Application. All the permissions were set. IIS_IUSRS, AppPoolIdentity and then gave full access to Everyone. Nothing worked. Restarted apppool, site and IIS but No...
View ArticleAnswer by Syed Umar Ahmed for Cannot read configuration file due to...
check if the file is not marked as read-only, despite of the IIS_IUSRS permission it will display the same message.
View ArticleAnswer by Kat for Cannot read configuration file due to insufficient permissions
I had this error message that turned out to be due to my physical folder being located on a network drive as opposed to the local drive. It seems the permissions on such drives by default can be...
View ArticleAnswer by zwitterion for Cannot read configuration file due to insufficient...
I had the same problem when I tried to share the site root folder with another user. Some folder lost the permission.So I followed the steps to add permission to IIS_IUSRS group as suggested by Afshin...
View Article