Answer by Ogglas for Cannot read configuration file due to insufficient...
Instead of giving access to all IIS users like IIS_IUSRS you can also give access only to the Application Pool Identity using the site. This is the recommended approach by Microsoft and more...
View ArticleAnswer by Nasko for Cannot read configuration file due to insufficient...
I set the .NET CLR version to No Managed Code and everything started to work fine.
View ArticleAnswer by Michael for Cannot read configuration file due to insufficient...
The above answers were helpful, but in case this helps anyone - I had this exact problem, and it turned out that I was (windows networking) sharing the root folder that the site was being hosted from....
View ArticleAnswer by Ramadan Alrai for Cannot read configuration file due to...
I tried most of the previous suggestions but in vain. I can't reload the website, so I edited the .csproj file and changed the port number and it worked...
View ArticleAnswer by UKcentric for Cannot read configuration file due to insufficient...
This can happen if your application is in a virtual directory and the path to the files is a mapped drive. If you change the path to the files to a local drive, this will solve it, if that indeed is...
View ArticleAnswer by WernerCD for Cannot read configuration file due to insufficient...
I was running a website at localhost/MyApp built and run through Visual Studio - via a Virtual Directory created by Visual Studio itself.The "solution" for me was to delete the Virtual Directory and...
View ArticleAnswer by Andy for Cannot read configuration file due to insufficient...
I had this issue running on Windows 10 with the App Pool using a microsoftaccount\email@contosa.com account (e.g., signing in to the PC with a Microsoft Account instead of local account).Apparently on...
View ArticleAnswer by Doruk for Cannot read configuration file due to insufficient...
All answers given are valid and working under different circumstances.For me, restarting Visual Studio worked.
View ArticleAnswer by Oranit Dar for Cannot read configuration file due to insufficient...
Make sure your web.config file is not marked Read-only
View ArticleAnswer by Trent U for Cannot read configuration file due to insufficient...
I had this same issue and none of these solutions worked for me. I kept getting the same error and one about "Failed to start monitoring changes" in the event viewer. The only thing that worked was to...
View ArticleAnswer by subash adhikari for Cannot read configuration file due to...
Go to IIS, (sites)Right click on project inside the sites.enter image descriptionhereand click on edit permission.Go to security.click on edit button.click add button. type...
View ArticleAnswer by CredibleAshok for Cannot read configuration file due to...
Certainly, this is an issue with permissions. I took following steps and it worked for me.select your website or application in left corner. In most cases it would be under Default web site.click on...
View ArticleAnswer by Tom McDonald for Cannot read configuration file due to insufficient...
The accepted solution didn't for me. I use a Git repo and it cloned to the following folderc:\users\myusername\source\repos\myWebSiteI made new IIS website and pointed it at the path. Which didn't have...
View ArticleAnswer by Adem Aygun for Cannot read configuration file due to insufficient...
I gave permission and used ICACLS.exe but didn't work. Then I changed the physical path and it worked successfully.(IIS 8.5 windows 2012 R2)
View ArticleAnswer by Talha Imam for Cannot read configuration file due to insufficient...
Shift your project to some drive other than C:Worked for me with the same error.
View ArticleAnswer by ludens for Cannot read configuration file due to insufficient...
I have solved this by adding read permission to folder for application pool user (WIN SERVER 2008 R2):C:\Windows\System32\inetsrv\configA little background:Our server has been hacked using classical...
View ArticleAnswer by SanthoshM for Cannot read configuration file due to insufficient...
Sometimes if it is a new server you need to configure or install ASP.NET feature on IIS for it to be able to read your web.config file. In my case this was the reason.
View ArticleAnswer by SliverNinja - MSFT for Cannot read configuration file due to...
This happened to us when the IIS application has a Virtual Directory with a Physical Path that contains forward-slashes / instead of backslashes \. This was accidentally done using a powershell...
View ArticleAnswer by Igor Levkivskiy for Cannot read configuration file due to...
Right click Web.Config => Tab Security => Button Edit => Button Add => Button Advanced => Button Find Now = > In Search results select your group(in our case " IIS_IUSRS") => Ok...
View ArticleAnswer by Dinesh Rajan for Cannot read configuration file due to insufficient...
In my case, I was trying to host pages from a mapped drive (subst). The issue is that the subst was run under my account and the IIS user is not able to see the same drive
View ArticleAnswer by Bogdan Mates for Cannot read configuration file due to insufficient...
I had the same issue and after doing all the stuff written here as answers, it still reproduced.The second half of the issue was the fact that .NET was turned off under "Turn Windows features on or off"
View ArticleAnswer by Kurt Van den Branden for Cannot read configuration file due to...
Make the file accessible to the IIS_IUSRS group. Right click your web.config, expand properties, and under security tab, add IIS_IUSRS. Give the group read/write access. When the group is NOT...
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Article