241

What causes this error, how can I fix it?

Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x8007052e
Config Error Can not log on locally to C:\inetpub\wwwroot as user administrator with virtual directory password
Config File Unavailable (Config Isolation)
Requested URL http://192.168.0.3:80/
Physical Path C:\inetpub\wwwroot
Logon Method Not yet determined
Logon User Not yet determined

Config Source

<application path="/" applicationPool="PS-Extranet">
    <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" userName="administrator" password="[enc:AesProvider:PrISRz2ggJH4bV46ktObfCSh91Y/yF9pAoLmH7eCnj0=:enc]" />
</application>
Nate Barbettini
  • 51,256
  • 26
  • 134
  • 147
Stuart
  • 11,775
  • 6
  • 33
  • 31
  • 1
    The "real" error message is usually someplace on the page. You should post the full content of the error page your getting if you want help with this question. – John Farrell May 30 '09 at 06:11
  • 1
    Just want to point something out for people doing a Google search and coming up with this question if it's not obvious: I am using VS2012 with IISExpress. I accidentally deleted the folder in c:/Users/[YOUR USER NAME]/MyDoocuments/MyWebsites/[THE WEBSITE]. It was an empty folder (which for some reason my brain said to delete). Once I restored it from the Recycle Bin all was well. Sorry for the comment, but it seemed better than an answer that was going to wind up at the bottom and possibly not seen. This is just an alternative if nothing else here works. – REMESQ Sep 12 '13 at 18:18
  • 2
    See if this works: (1) go into IIS manager, (2) open the Advanced Settings window for website, (3) set the Physical Path Credentials to the administrator user. – Jeremy Ray Brown Aug 09 '15 at 23:55
  • Take a look here as well http://blogs.msdn.com/b/webtopics/archive/2010/03/08/troubleshooting-http-500-19-errors-in-iis-7.aspx – NoWar Nov 18 '15 at 15:52
  • I know its old post but this is what worked for me (Easy solution), I just closed and re-opened the visual studio and it worked. I had exact same error. When i checked my git command prompt i could see `.vs/config/applicationhost.config` file was changed and it had update virtual directory path. – S52 Sep 25 '17 at 18:18
  • I installed the .NET Core framework (https://dotnet.microsoft.com/download/dotnet-core/2.2) . That was which solved my problem – a52 Mar 23 '19 at 20:05
  • For me nothing here worked. But I found the issue by myself: My aspx page / web.config ... was in the c:/Users/... folder. I fixed it by just moving it somewhere else. The User folder seems to have some strange permissons. – Julian Oct 06 '20 at 09:26
  • I found this helpful. However - CLOSED – Sebastian Patten May 03 '23 at 19:04

31 Answers31

460

I had the same issue, but reason was different.

In my web.config there was a URL rewrite module rule and I haven’t installed URL rewrite module also. After I install url rewrite module this problem solved.

Jomy John
  • 6,308
  • 4
  • 28
  • 32
  • 80
    +1000 completely asinine error message for having a config section it doesn't understand – Chris Marisic Aug 09 '12 at 19:50
  • 5
    @ChrisMarisic -- yes and no. The error message isn't directly helpful but it is correct. No url rewrite module so no config section is valid so the config is malformed technically. Now why they can't just spit out a better error is beyond me. – Wyatt Barnett Apr 07 '14 at 20:46
  • 3
    wow, 3 hours of time wasted. I'll give it +1000000. How ridiculous is that error message. This saved my day. – ScottG Jan 22 '15 at 21:07
  • 22
    The thing that's inexcusable about this error message is that when it shows the config source it shows (at least on mine) a blank window with code lines "-1" and "0". What it should show is the "" part in your config, screaming at you that it doesn't know what it is... – JoeCool Mar 25 '15 at 20:16
  • 20
    I wish Microsoft had a face so I could punch it for the useless error message. – Yatrix Mar 08 '16 at 18:54
  • This was my issue, but was convinced it wasn't this, I commented out the rules in the web.config and I got the same error weirdly, but when I installed the module my website worked so it was exactly this issue. – Stacker-flow Apr 17 '16 at 03:16
  • 3
    wow microsoft, another swing and miss – schmoopy Oct 19 '16 at 00:55
  • 1
    +1000 man! I thought application pools has this error but it is not. I have commented out a rewrite element and the error goes away. Many thanks. – agentpx Nov 01 '16 at 16:47
  • Mine was a similar issue - was a production web.config I was trying to get running locally and it had some redirects that weren't supported locally - error really didn't match the problem – Rob Jul 05 '18 at 04:48
  • 1
    guys this is the right solution most of the time! – Ray Lu Nov 14 '18 at 18:47
  • it's not a direct answer, but it is the most possible reason that causes the issue for developers!! – Joe Lu May 11 '19 at 14:03
  • 1
    This solved my case, although I don't have that tag in the web.config – Piero Alberto Jul 15 '20 at 09:42
  • 1
    Thanks a lot man , tried googling nothing found useful than this!! – Pushkar Shirodkar Sep 14 '21 at 04:54
  • Still valid solution on Win 11 and ASP .NET 4.8 Web App – Varun Sharma Mar 04 '22 at 08:36
166

Looks like the user account you're using for your app pool doesn't have rights to the web site directory, so it can't read config from there. Check the app pool and see what user it is configured to run as. Check the directory and see if that user has appropriate rights to it. While you're at it, check the event log and see if IIS logged any more detailed diagnostic information there.

Bruce
  • 8,202
  • 6
  • 37
  • 49
  • correct bruce, had resolved this this morning, it appeared the systems admin guy changed the accounts passwords on the servers but omitted to change the user account login foir the virtual directory. It seems that the error showed overnight when the site had a period of inactivity, shutting down application process. Thanks for the answer – Stuart May 30 '09 at 22:58
  • For me it was the IT-department, that have changed the password on the service account. – JanBorup Aug 20 '12 at 10:43
  • @Bruce: I am working on localhost and getting the same error.what to do in these case – Nad Nov 28 '14 at 09:33
  • 37
    The accepted answer to this question is a good one, addressing something commonly causes trouble, but for those of us that are experiencing a more obscure problem, Jomy John's answer currently has more votes. It concerns the tag in the web.config file. I'm commenting on it because it's a long way down the page, and I almost missed it. – Chad McGrath Oct 08 '15 at 19:26
  • 4
    @ChadMcGrath Pro tip: Sort answers by votes (the setting will stick) – JamesQMurphy Dec 12 '16 at 20:28
  • I fixed it by enabling Windows Authentication for the project in addition to anonymous authentication. Hope this helps someone. – Shadi Alnamrouti Jan 01 '17 at 15:21
132

On Windows 10 I had to install ASP.NET 3.5 and ASP.NET 4.6 under Internet Information Services (the other boxes automatically check themselves):

enter image description here

joshcomley
  • 28,099
  • 24
  • 107
  • 147
  • This was the beginning solution for me in getting DNN working as an application, appose to a virtual directory, with a "classic" appPool setup. Now I can run PHP and ASPX applications in IIS. Thanks for starting the fire. – klewis Feb 03 '17 at 21:43
  • 1
    Thanks a lot. I tried so many solutions but no luck and i scrolled down here and tried your suggested solution and it worked for me. Good job #joshcomley – nativegrip Mar 05 '19 at 04:54
  • 3
    And this here is why you need to read ALL the suggested answers! Thank you Josh! – Conor Gallagher Mar 28 '19 at 11:23
  • 1
    THANK YOU! I was getting a useless "HTTP Error 500" message on a new server I was configuring. In the logfile, I also saw a sc-substatus of 19 and a sc-win32-status of 33. Adding these dev features fixed mine. – Bob Kaufman Sep 19 '19 at 04:54
  • that was the issue thank you! – smedasn Nov 05 '19 at 16:30
  • Thank you! On Win Server 2012 I needed to install .NET 4.5 and ASP 4.5 – mohsenof Apr 16 '20 at 07:17
81

Finally I get the solution for my problem. The asp.net account not appear in the IIS manager because I didn't check its check Box in IIS to do this in windows 7 follow the steps

  1. Open control panel
  2. Click on” program” link (not uninstall programs)
  3. Click” turn windows features on/off” link
  4. locate” Internet Information services IIS” in the pop up window and expand its node
  5. Expand the” World Wide Web Service” node
  6. Expand “Application Development Features” node
  7. check the check box of”ASP.NET”
  8. Then click ok button

Now you will see the Asp.net account on the IIS manager and by default you see IIS account Now you should move you asp.net website from “my document” to another place the IIS have permission to access it (to any partition on your computer) Now browse your website from IIS manager and it should work.

Bernhard Barker
  • 54,589
  • 14
  • 104
  • 138
Delia D
  • 811
  • 6
  • 2
  • This totally worked for me! Thanks! My problem was that ASP, ASP.NET 3.5 and ASP.NET 4.5 wasn't enabled. So I checked/enabled them and it works now thanks! – doncadavona Jul 28 '15 at 03:16
69

We got this error after having to change our domain administrator password.

After monkeying with several settings, I eventually found that in the application in below path as it was set to specifically use the domain administrator account rather than pass-through authentication (who knows why).

IIS Manager -> Basic Settings -> Connect

Ajay2707
  • 5,690
  • 6
  • 40
  • 58
c0bra
  • 2,982
  • 23
  • 34
20

you need to do one step:

run->cmd

run "c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i"

Thats it

Infinite Recursion
  • 6,511
  • 28
  • 39
  • 51
Vicxx
  • 444
  • 4
  • 10
  • 2
    Run This command As a Administrator – user2819666 Dec 26 '14 at 13:28
  • 1
    On Windows 10 it gives following error: This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771. Finished installing ASP.NET (4.0.30319.0) without changing existing web applications to use this version of ASP.Net. – Shridhar R Kulkarni Dec 18 '17 at 12:14
  • 3
    Better ...if you could give a bit of explanation for this command. – eRaisedToX Mar 30 '18 at 11:07
  • 1
    no, that's not it – hyankov Oct 12 '20 at 19:08
16

Experienced this issue today and resolved it. Someone had set the "Path Credentials" for the "Default web site" in IIS to run as a specific user. This same user changed her password either due to the password expiring or just a routine change. Setting the "Default website" to connect as the "Application User" via the basic settings option resolved it for me

Baz
  • 161
  • 1
  • 2
  • This was it for me. Thanks! My Path Credentials were set to my account, but earlier this evening I fat fingered my password and got locked out for 15 minutes. Redoing my Path Credentials username/password did the trick. Hmmm, since my account was unlocked, it occurs to me that if I had just bounced the service, that might have done the trick to. Anyhoo, thanks! – Patrick Karcher Jul 20 '13 at 00:53
  • It's Feb 2015, and IIS errors are as baffling as always. Thanks! – Warren P Feb 27 '15 at 17:59
13

you probably change your NT password.

Open IIS -> Right click on your application -> manage application -> advanced Setting -> physical path credentials.

good luck

Soleil
  • 6,404
  • 5
  • 41
  • 61
Ziv.Ti
  • 609
  • 7
  • 10
11

For me, I needed to enable Http Activation under the .Net features in "Add/Remove Windows Features"

doodlleus
  • 575
  • 4
  • 14
10

In my case, this error appears after changing folder's solution.

I solve the problem by goin to my project properties and recreate my virtual directory.

Right click on project > Properties > Web > Under Servers section click "Create Virtual Directory"

It will display a message saying that the virtual directory was created in another place and it will change it

Gelásio
  • 1,899
  • 1
  • 19
  • 18
6

Got this working alright but not based on suggestions above. My case is that am getting the 500 error running iis7 on a windows 2008 server in a domain. Just added a new user in the domain and basically allow read/execute access to the virtual directory or folder. Ensure that the virtual folder>basic settings> Connect As > Path credentials is set to a user with read/xecute access. You can test settings and both authentication and authorization should work. Cheers!

royalcharlie
  • 61
  • 1
  • 1
5

Default web site need to manage as well:

1 .On Default web site -> basicSettings -> connect as, change it to the right user.

2.change the Identiy of the applicationPool that related to the defaultWebSite

g.luck

Ziv.Ti
  • 609
  • 7
  • 10
5

Right now i had this error and resolved it. Your url could match with created virtual directory.

You have to check virtual directories, in my example i found in applicationhost.config next row:

<application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/admin/roles" physicalPath="C:\..." />
</application>

I tried to open page with an url (http://localhost/admin/roles) of AdminController and Roles action and got this error.

Maxim Zhukov
  • 10,060
  • 5
  • 44
  • 88
4

Was having the same error and fixing the credentials in the IIS app pool did not help. I finally resolved the error in IIS by selecting my website under Default Web Site, Advanced Settings->Physical Path Credentials->Specific User, and reentered the credentials for the app pool user, then restarted IIS and the error went away and my website came up successfully.

mbonness
  • 1,612
  • 1
  • 18
  • 20
  • yeah, likewise. iis7.5 on 2008R2. had to change the password due to local account complexity rules and didn't know it was also used in IIS. tracked it down with this comment and a coupe of others on here. but this one most specific. – bytejunkie Apr 03 '14 at 11:55
4

For others out there, I got a similar error message due to trying to run a .Net 4 app in a .Net 2 app pool. Changing the .Net FX version for the app pool fixed it for me.

Brian
  • 37,399
  • 24
  • 94
  • 109
4

I was having a similar error installing php 5.3.3 with the Error Code 0x80070020 with a direction to a few lines in web.config in my www root directory (not the standard root directory).

The solution, while crude, worked perfectly. I simply deleted the web.config file and now everything works. I spent HOURS trying other solutions to no avail.

If anyone thinks this was stupid, please let me know. If anyone else has spent the same amount of time pulling out hair, try it and see (after backing up the file of course)

Regards FEQ

user409442
  • 41
  • 1
3

As I got the 500.19, I gave IIS_IUSRS full access rights for the mentioned web.config and for the folder of the project. This solved the issue.

You can give permissions by

  1. right click on the folder / file
  2. selecting the tab "security"
  3. add the user IIS_IUSRS - don't forget the i in front of USRS and don't write an "e" as in USERS
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
3

If it's bigin when you try to acces to joomla administrator panel, Just a username and password problem !! You have just to update a jos_user in your joomla database.

Go to your joomla web site directory and open a configuration.php with bloc note or note pad to show what database name your joomla administrator site use. You have to find a line who have:

public $user = 'joomlauser251';           //MySQL username

In my case joomlauser251 is my DB name.

Login to your mysql:

 mysql -uyourusername -pyourpassword

Select database for your joomla:

use joomlauser251;

Change password for admin:

UPDATE jos_users SET password=MD5(‘NewPassword’) WHERE username=’admin’;

And retry to acces again.

That’s all !!!

Raydel Miranda
  • 13,825
  • 3
  • 38
  • 60
2

Didn't seem to be a permission issue for me - tried giving the IIS_IUSRS account full control over everything in the web service, just to see if this was the cause. The fix turned out to be recreating the application hosting the web service (i.e. the actual '.svc') in IIS

Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
2

In my case, I found a reference to an old domain account password in applicationHost.config under Virtual Directory defaults.

Scott
  • 153
  • 4
  • 7
2

so easy find the file "applicationHost.config" in Windows -> System32 ->inetsrv -> config 1. backup "applicationHost.config" to another filename 2. open file "applicationHost.config" clear data and save 3. open browser and call url internal website , finished.

2

If you are using a new, dedicated, user account... It is also worth checking that the password for that account has not expired, as that will also cause this 500.19 permissions issue.

Steve Ned
  • 81
  • 3
2

For ASP.NET Core websites, this generic error will also occur if you don't have the HttpPlatformHandler module installed, see this answer for more details.

Community
  • 1
  • 1
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
1

ASP.Net applications come pre-wired with a handlers section in the web.config. By default, this is set to readonly within feature delegation within IIS. Take a look in IIS Manager

1.Go to IIS Manager and click Server Name

2.Go to the section Management and click Feature Delegation.

3.Select the Handler Mappings which is supposed to set as readonly.

4.Change the value to read/write and now you can get resolved the issue

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
Kevin M
  • 5,436
  • 4
  • 44
  • 46
1

I have just one more thing to say about this. With the same HTTP Error code, you can still have several different errors, as one of them has been posted here at the original question's description. For example: after I've edited the Web.Config file of an ASP.NET project, I had

Error Code 0x8007000d

"Only one <configSections> element allowed. It must be the first child element of the root <configuration> element "

As it says, you must NOT insert your own XML stuff before the <configSections> part of the Web.Config file. After I've inserted my snippet after the end tag of <configSections>, it worked just fine.

Community
  • 1
  • 1
aniski
  • 1,263
  • 1
  • 16
  • 31
1

My website's correct path was not specified in IIS.

Cosmin
  • 2,365
  • 2
  • 23
  • 29
1

My solution is that,

  1. just delete the corrupted folder.
  2. Then re-create folder again.

It seem that if the corrupted folder had been created before IIS setup. If you created folder again, it will work correctly.

Sruit A.Suk
  • 7,073
  • 7
  • 61
  • 71
1

I got this error after uninstalling Windows Server Update Services (WSUS) from the computer running IIS. Apparently uninstalling WSUS may break the IIS configuration on the server making other web application installed on the same server unavailable.

I found the solution for the problem here.

hsjolin
  • 576
  • 4
  • 4
1

In my case, the value of the Key was incorrect in Web.config file:

    <defaultDocument>
        <files>
            <add value="Portal.htm" />
        </files>
    </defaultDocument>

when I change the value to "Portal.html" it worked.

Imran Khan Hunzai
  • 304
  • 1
  • 3
  • 17
0

I got this error after upgrading from Visual Studio 2013 to 2015. After a bit of searching and trying various fixes I found the problem can be resolved by removing the following from web.config:

<staticContent>
    <mimeMap fileExtension=".less" mimeType="text/css" />
</staticContent >

Apparently staticContent is deprecated now?

Source

Edit 1

This sort of prevented IIS from serving .json files when the program was deployed. If you do this you're supposed to re-add .json (application/json) to the mime types of your site in IIS. Here is some more info: http://www.iis.net/configreference/system.webserver/staticcontent/mimemap

Edit 2

I noticed that in my situation the above edit 1 solution only works temporarily. Once I redeploy the entry gets removed. So, I moved the mimeMap XML into Web.Release.config. Works fine now.

Community
  • 1
  • 1
JSideris
  • 5,101
  • 3
  • 32
  • 50
-6
  1. Open IIS Manager from the start button
  2. Double click on features delegate
  3. Make all the properties read and write
  4. go to ISPAI and remove all the permissions

If above not worked properly. Then, make sure that u have installed the visual studio first before installation of IIS,

For better solution uninstall visual studio and then again install first IIS properly then visual studio

Sruit A.Suk
  • 7,073
  • 7
  • 61
  • 71
jags
  • 3