Iis cannot read configuration file web.config
I'm running IIS 7. I made new IIS website and pointed it at the path. When I added the permissions it still didn't work. It only started working when I gave the following permissions to the 'Users' group and inheritance cascaded the permissions to web.
Probably should have applied it just to the web. 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. We tracked this down after adding the 'everyone' user with read and everything worked fine. For me the error turned up during Debugging on my local machine and turned out to be related to the base web. NET Framework when compiling the website.
Fixing this fixed the See this: IIS Manager can't configure. NET Compilation on. NET 4 Applications. Right click Web. A little background: Our server has been hacked using classical error where app user had more permissions that it should local admin. To fix it we created new domain user that had only permissions on application folder, with min needed rights and assigned it as application pool user. 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 your problem.
I was receiving the "Cannot read configuration file due to insufficient permissions" as well. NET 4. Marking them both to Allowed fixed my problem. 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.
Had this issue with a Virtual Application. All the permissions were set. Nothing worked. Restarted apppool, site and IIS but No go. 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 different. For example, while the local drive location gave permission to the users of the local computer, the network location did not.
Further, the accepted answer does not work for such a case. The local users or IIS users were not an available to assign permissions to. The solution was to move the physical folder to the local drive. 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". Sometimes if it is a new server you need to configure or install ASP.
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. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Cannot read configuration file due to insufficient permissions Ask Question. Asked 10 years, 9 months ago. Active 9 days ago. Viewed k times.
Community Bot 1 1 1 silver badge. Please see the install rewrite module. My solution would be to run the commands from command line opened with administrator privileges. To do this, find command prompt, right-click it, and click run with administrator privileges. I did this ad now local host is asking for a password, nearest I've getting so far to this working thanks — Paul Ledger. That worked for me. This worked for me. This should be the accepted answer. I tried the other methods, they don't work.
Tried all other solutions won't work until this one. Okay, I think I have an explanation for why this works. So devs like myself who host their code inside the home folder have to grant access to Authenticated Users to those IIS root folders in order for IIS to work. I am not sure which user credentials are expected here. Can anybody help? You don't have to change anything in your web. Erik Funkenbusch Erik Funkenbusch I had a similar problem.
Mine defaulted to the corporate domain, so I didn't find it right away because I forgot to check to see where it was looking. Mystere Man I have the same issue. I changed the permissions and then tried.
Still I get the same error. I have granted 'Everyone' with full permission on the Web app folder and it works. Kurt Van den Branden Kurt Van den Branden 10k 9 9 gold badges 68 68 silver badges 79 79 bronze badges.
I tried full computer name, too, but it wouldn't even accept that as a valid user. Carlos Carlos 3 3 silver badges 7 7 bronze badges. Where can I get this interface? This answer should be part of the accepted answer cause without this you also need to add IUSR in the access list of the website's folder — Laurent S. Job done! Quinny Quinny 2 2 silver badges 2 2 bronze badges. What on earth is with recommending Write access when Read is all that's needed? ClayShannon Me too.
Luis Luis 1 1 silver badge 1 1 bronze badge. If your permission is full access and still get the error, this is the correct answer y. Sniipe Sniipe 1 1 silver badge 7 7 bronze badges. Click on Edit Ogglas Ogglas Shift your project to some drive other than C: Worked for me with the same error. Talha Imam Talha Imam 18 18 silver badges 20 20 bronze badges. The accepted solution didn't for me.
Had exact the same situation. This helped. All answers given are valid and working under different circumstances. For me, restarting Visual Studio worked. Doruk Doruk 9 9 silver badges 25 25 bronze badges. Rafael Emshoff Rafael Emshoff 1, 1 1 gold badge 29 29 silver badges 43 43 bronze badges. Igor Levkivskiy Igor Levkivskiy 4 4 silver badges 12 12 bronze badges.
Bad Config Example - applicationHost. Changing it to a single back slash worked — Ben Anderson. UKcentric UKcentric 31 2 2 bronze badges. Earl Earl 79 1 1 silver badge 4 4 bronze badges. I suspect the share messed it up. Michael Michael 1 1 silver badge 3 3 bronze badges. Deleted the virtual application and added it again from scratch and it started working.
Wish I knew what solved it. Kat Kat 4, 3 3 gold badges 26 26 silver badges 79 79 bronze badges. Bogdan Mates Bogdan Mates 4 4 silver badges 8 8 bronze badges. HTTP Error Asked 5 years, 8 months ago. Active 1 year ago. Viewed 19k times. I have tried, without success: giving modify permission on the site folder to Everyone checking the web. Improve this question. The naming error wasn't obvious when I asked the question so it didn't occur to me. I only noticed it later on. Still, upvote for being in the right direction.
Add a comment. Active Oldest Votes. Improve this answer. I had exactly the same issue and spent hours looking for an answer Do you know why the physical and virtual path have to match? I don't think this is the case for on iis6 but apparently so on iis8. I had the same issue, I too feel stupid. NET Core app. To set environment variables for individual apps running in isolated app pools supported for IIS Configuration sections of ASP.
NET 4. NET Core apps for configuration:. NET Core apps are configured using other configuration providers. For more information, see Configuration. If you need to transform web. You might need to transform web. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.
Please rate your experience Yes No. Any additional feedback? Note An alternative to setting the environment directly in web. Submit and view feedback for This product This page.
View all page feedback. In this article. Optional string attribute. Arguments to the executable specified in processPath. Optional Boolean attribute.
0コメント