The message is saying that your configuration file is corrupt in some way. However it also says that it can’t actually access the config file. So I’d ignore the original message about corruption/lack of validity as this is most likely just the effect of not being able to read the file due to a lack of authorization.
The reason it cannot read the config file is because the process running your web app does not have permission to access the file/directory. So you need to give the process running your web app those permissions.
The access rights should be fairly straightforward, i.e. at least Read, and, depending on your app, maybe Write.
Above, you mention IUSR etc. not being in the properties for web.config
. If by that you mean that IUSR is not listed in the security tab of the file then it’s a good thing. One doesn’t want to give IUSR any kind of permission to web.config. The role IUSR is an anonymous internet user.
The file web.config should only be accessible through your application.
The problem is you haven’t said which OS and IIS version you are using so it’s difficult to advise which steps to take.
I.e. in IIS 7.5, the error message you’re quoting is likely to occur due to your ApplicationPoolIdentity not being assigned the permissions. Your web application belongs to an application pool and so you need to give the permissions to the OS account that your web application’s application pool runs under. Often this is something like NetworkService but you may have customized it to run under a purpose made account. Without more info it’s difficult to help you.
- Remove From My Forums
-
Question
-
Has anyone seen that problem and knows what I can do to get rid of it?
I had IIS working just fine until I updated this box to Windows 10 Profesional. Now my local pages show this error:
HTTP Error 500.19 — Internal Server Error
Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x80070005 Config Error Cannot read configuration file due to insufficient permissions Config File \\?\D:\Sites\MySites\ atalkingdog.com.2006\LiveSite\ wwwroot\web.config I googled the problem and I think the problem is to do with permissions on the user IIS_IUSRS . So i’ve made sure that user has full control permissions, but the problem hasn’t gone away.
Strangely, the default page on http://localhost works ok and the CF Administrator pages work fine. It’s just my own site that gives this error.
Anyone have any hints where I should go now?
Cheers
Mike Kear
Windsor, NSW, Australia.
Mike Kear, Windsor, NSW, Australia, AFPWebworks Pty Ltd
The message is saying that your configuration file is corrupt in some way. However it also says that it can’t actually access the config file. So I’d ignore the original message about corruption/lack of validity as this is most likely just the effect of not being able to read the file due to a lack of authorization.
The reason it cannot read the config file is because the process running your web app does not have permission to access the file/directory. So you need to give the process running your web app those permissions.
The access rights should be fairly straightforward, i.e. at least Read, and, depending on your app, maybe Write.
Above, you mention IUSR etc. not being in the properties for web.config
. If by that you mean that IUSR is not listed in the security tab of the file then it’s a good thing. One doesn’t want to give IUSR any kind of permission to web.config. The role IUSR is an anonymous internet user.
The file web.config should only be accessible through your application.
The problem is you haven’t said which OS and IIS version you are using so it’s difficult to advise which steps to take.
I.e. in IIS 7.5, the error message you’re quoting is likely to occur due to your ApplicationPoolIdentity not being assigned the permissions. Your web application belongs to an application pool and so you need to give the permissions to the OS account that your web application’s application pool runs under. Often this is something like NetworkService but you may have customized it to run under a purpose made account. Without more info it’s difficult to help you.
Before everyone reads this, I just want to say that i know that there are related threads out there, but I have either tried them or do not understand. With that being said here goes nothing…
I am trying to get a MVC Web App running in my IIS. Unfortunately, I am absolutely stuck on this error:
HTTP Error 500.19 - Internal Server Error
The Request page cannot be accessed becasue the related configuration data for
the page is invalid.
Module: IIS Web Core
Notification: BeginRequest
Handler: Not yet determined
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Config File: \foo\web.config
Request URL: http://localhost/WEBAPP
Logon Method: Not yet determined
Logon User: Not yet determined
Config Source
-1:
0:
I am not quite sure what else to do. I have also tried giving read permission to the web.config file and that did not seem to work.
If anyone has any information or would be able to help me work through this it would be much appreciated. Thanks!
Lex Li
60.6k9 gold badges117 silver badges147 bronze badges
asked Sep 4, 2013 at 17:53
scapegoat17scapegoat17
5,52914 gold badges55 silver badges91 bronze badges
4
This is a noise. It is only useful if you see error code 0x8007000d
in the error page and you indeed have <rewrite>
tag in the config file.
In my case I needed to install the IIS URL rewrite module 2.0 because it is being used in the web.config and this was the first time running site on new machine.
Lex Li
60.6k9 gold badges117 silver badges147 bronze badges
answered Aug 14, 2014 at 20:58
7
On this MSDN blog: Troubleshooting HTTP 500.19 Errors in IIS 7 in scenario 8 for error code 0x80070005
(E_ACCESSDENIED
— General access denied error) it says:
Grant Read permission to the
IIS_IUSRS
group ……. the worker process identity (and/or the
IIS_IUSRS
group) needs at least Read access to the directory so that it can check for a web.config file in that directory.
Wai Ha Lee
8,60884 gold badges57 silver badges92 bronze badges
answered Sep 4, 2013 at 18:49
renerene
41.5k78 gold badges114 silver badges152 bronze badges
4
Please follow these step
- Go to Control Panel
- Go to Programs and Features
- Turn Window Feature on or off
- Go to Internet Information Service node
- Follow World wide web Services
- Then Please Check Application Development Feature
- Then Please check all Node Specially Asp or Application Framework Like Asp.net 3.5 or ASP.NET 4.5 whatever you have
answered May 19, 2017 at 6:11
Amit YadavAmit Yadav
2112 silver badges4 bronze badges
2
I fixed this by restarting VS.
I had opened a config file in another instance of VS and apparently sth went nuts…
answered Jan 24, 2014 at 12:46
user2173353user2173353
4,3164 gold badges47 silver badges79 bronze badges
1
Goto Windows Features on or Off . Enable All Features under Application Development Features and Refresh the IIS. Its Working
answered Jul 20, 2018 at 22:34
2
I had a sub folder named web.config renaming this folder resolved the issue
answered Mar 10, 2015 at 15:27
My issue is that I accidentally installed another site as the default site instead of the IIS default (by opening another project.) I had to remove the default site and repoint it to the default location C:\inetpub\wwwroot
using my domain login as the user to bypass with then just reopened my project that I was trying to run (the one showing this error) and it was all honky dorry
answered Dec 4, 2013 at 22:41
Serj SaganSerj Sagan
29k17 gold badges154 silver badges183 bronze badges
I was accessing the project from inside a Virtual Machine — sharing the project folder from the host OS (Windows 10). After trying many of the solutions, and even ensuring the permissions for the IIS_IUSRS
are given, still I could solve this.
Eventually, I copied this folder from the host, onto a path on the guest OS, and now I can properly run that same ASP.NET project without ado. But, I did also go ahead and give the IIS_IUSRS
group full control over this new dir as well… maybe that’s not really necessary in this case? I’m lazy to test that ATM.
answered May 18, 2016 at 10:53
JWLJWL
13.6k7 gold badges57 silver badges63 bronze badges
1
Delete .vs/Config folder => work for me
answered Aug 14, 2020 at 1:22
H u yH u y
111 bronze badge
I tried all solution above. My issue is resolved after reinstalling hosting bundle.
I installed hosting bundle before in IIS Manager installation.
I think this is caused error. Don’t know why, but, the reinstallation works.
answered Dec 21, 2021 at 14:40
2
If Folder getting from other, and host file is already generated on ProjectName\.vs\config
folder, then it conflicts with a new one and gets this error.
So delete host file from ProjectName\.vs\config
and restart project once again. It was worked for me
answered Nov 30, 2018 at 11:01
In my case, Server had lower version framework than your application. installed latest version framework and it fixed this issue.
answered Jan 22, 2019 at 15:57
PMC KarurPMC Karur
1252 gold badges3 silver badges10 bronze badges
In my case I had .Net core SDK 3.1.403 was installed. So I installed the corresponding .Net Core Windows Server Hosting which is .NET core 3.1.9 — Windows Server Hosting.
answered Nov 16, 2020 at 6:03
I had this error with Visual Studion 2019, my project was NopCommerce 4.30 which is an ASP.Net Core 3.1 project. I added page «gouden-munten-buitenland» to be the starting page and I only got the error when going to that page. Turned out that Visual Studio generated an invalid applicationHost.config :
<applicationPools>
....
<add name="gouden-munten-buitenland AppPool" autoStart="true" />
<add name="gouden-munten-buitenland AppPool 2" autoStart="true" /> <!-- WRONG -->
<add name="Nop.Web AppPool" managedRuntimeVersion="" />
<applicationPoolDefaults managedRuntimeVersion="v4.0">
<processModel loadUserProfile="true" setProfileEnvironment="false" />
</applicationPoolDefaults>
</applicationPools>
and
<sites>
....
<site name="Nop.Web" id="2">
...
<application path="/gouden-munten-buitenland/gouden-munten-buitenland" applicationPool="gouden-munten-buitenland AppPool">
<virtualDirectory path="/" physicalPath="C:\Usr\Stephan\Wrk\Kevelam\kNop.430\Presentation\Nop.Web" />
</application>
<application path="/gouden-munten-buitenland" applicationPool="gouden-munten-buitenland AppPool 2">
<virtualDirectory path="/" physicalPath="C:\Usr\Stephan\Wrk\Kevelam\kNop.430\Presentation\Nop.Web" />
</application> <!-- WRONG -->
....
</site>
...
</sites>
I removed the nodes identified as ‘WRONG’ and then it worked.
answered Jan 4, 2021 at 11:55
SteefSteef
5695 silver badges21 bronze badges
I had this problem to run restful service on IIS in Windows 10 and Windows Server 2019, finally after a lot of researches I solved the problem. After performing the following steps, the problem will most likely be solved.
-
Go to the «Windows Features» and active full features IIS («Internet Information Services» or «Web Server») and active .Net Features
-
Locate the source at «C:\inetpub\wwwroot«
-
Open IIS
- Click «Edit Permissions» on your web after go to the security tab and give full
access to the IIS_IUSRS - Go to the «Application Pool» next right click on your app pool after click on «Advanced settings» and change «Identity» to «LocalSystem«
- Go to the «Application Pool» next right click on your app pool after click on «Basic settings» and change «.NET CLR Version» to «No Managed Code«
- If you want to set the service to a specific port, first set it to port 80 and then edit it and set your port
- Click «Edit Permissions» on your web after go to the security tab and give full
-
Well now if the problem is still not solved then install the following software on the system :
- URL Rewrite 2
- WebPlatform
- DotNetCore.2.0.8 Windows-Hosting
- Dotnet-hosting 5
- Dotnet-runtime 5
- MicrosoftServiceFabricSDK 5
- NET.Framework 4.8
and finally restart the system.
answered Dec 28, 2021 at 9:08
Masoud SiahkaliMasoud Siahkali
5,1101 gold badge29 silver badges18 bronze badges
1
One reason, for which I face this issue was a web.config file in Images folder (on abnormal location) and IIS was trying to allow the read rights according to incorrect settings in the web.config file.
Therefore make sure your build is correctly deployed without any abnormal files specially the configs one on invalid locaiton.
answered Sep 10, 2022 at 20:28
In the Edit Application Pool window, set the .NET CLR version to No Managed Code
answered Mar 3, 2020 at 20:10
If your error is using a site in asp.net core, install the ASP.NET Core Windows hosting bundle.
- Click on the link below and select your .net core version
- In the following page find the link «Hosting bundle» (ctrl+f may help) and install it.
Worked a treat for me!
https://dotnet.microsoft.com/en-us/download/dotnet
answered Dec 23, 2021 at 2:50
dalcamdalcam
1,03711 silver badges28 bronze badges
2
Join
- Home
- Cloud Computing & SaaS
- Web Hosting
- How-tos
Last Updated:
Aug 02, 2013
1 Minute Read
-
Spice
-
Reply (0)
-
Subscribe
-
Share
Opens a new window
-
Facebook
Opens a new window -
Twitter
Opens a new window -
Reddit
Opens a new window -
LinkedIn
Opens a new window
-
- Spiceworks General Support
Sign Up
Load More