How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0

asp.netIisWeb ApplicationsIis 7

asp.net Problem Overview


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>

asp.net Solutions


Solution 1 - asp.net

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.

Solution 2 - asp.net

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.

Solution 3 - asp.net

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

Solution 4 - asp.net

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.

Solution 5 - asp.net

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

Solution 6 - asp.net

you need to do one step:

run->cmd

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

Thats it

Solution 7 - asp.net

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

Solution 8 - asp.net

you probably change your NT password.

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

good luck

Solution 9 - asp.net

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

Solution 10 - asp.net

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

Solution 11 - asp.net

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!

Solution 12 - asp.net

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.

Solution 13 - asp.net

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.

Solution 14 - asp.net

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

Solution 15 - asp.net

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.

Solution 16 - asp.net

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

Solution 17 - asp.net

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 !!!

Solution 18 - asp.net

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

Solution 19 - asp.net

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

Solution 20 - asp.net

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

Solution 21 - asp.net

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.

Solution 22 - asp.net

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.

Solution 23 - asp.net

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

Solution 24 - asp.net

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.

Solution 25 - asp.net

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

Solution 26 - asp.net

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.

Solution 27 - asp.net

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.

Solution 28 - asp.net

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.

Solution 29 - asp.net

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.

Solution 30 - asp.net

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.

Solution 31 - asp.net

  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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStuartView Question on Stackoverflow
Solution 1 - asp.netJomy JohnView Answer on Stackoverflow
Solution 2 - asp.netBruceView Answer on Stackoverflow
Solution 3 - asp.netjoshcomleyView Answer on Stackoverflow
Solution 4 - asp.netDelia DView Answer on Stackoverflow
Solution 5 - asp.netc0braView Answer on Stackoverflow
Solution 6 - asp.netVicxxView Answer on Stackoverflow
Solution 7 - asp.netBazView Answer on Stackoverflow
Solution 8 - asp.netZiv.TiView Answer on Stackoverflow
Solution 9 - asp.netGelásioView Answer on Stackoverflow
Solution 10 - asp.netdoodlleusView Answer on Stackoverflow
Solution 11 - asp.netroyalcharlieView Answer on Stackoverflow
Solution 12 - asp.netMaxim ZhukovView Answer on Stackoverflow
Solution 13 - asp.netBrianView Answer on Stackoverflow
Solution 14 - asp.netuser409442View Answer on Stackoverflow
Solution 15 - asp.netmbonnessView Answer on Stackoverflow
Solution 16 - asp.netZiv.TiView Answer on Stackoverflow
Solution 17 - asp.netBink's DEMBELEView Answer on Stackoverflow
Solution 18 - asp.netChris HalcrowView Answer on Stackoverflow
Solution 19 - asp.netMartin ThomaView Answer on Stackoverflow
Solution 20 - asp.netScottView Answer on Stackoverflow
Solution 21 - asp.netThanitsorn PruekpanawechView Answer on Stackoverflow
Solution 22 - asp.netSteve NedView Answer on Stackoverflow
Solution 23 - asp.netKevin MView Answer on Stackoverflow
Solution 24 - asp.netaniskiView Answer on Stackoverflow
Solution 25 - asp.netCosminView Answer on Stackoverflow
Solution 26 - asp.netSruit A.SukView Answer on Stackoverflow
Solution 27 - asp.nethsjolinView Answer on Stackoverflow
Solution 28 - asp.netRoman StarkovView Answer on Stackoverflow
Solution 29 - asp.netImran Khan HunzaiView Answer on Stackoverflow
Solution 30 - asp.netJSiderisView Answer on Stackoverflow
Solution 31 - asp.netjagsView Answer on Stackoverflow