Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

500.19 error with IIS7.5

Tags:

iis-7.5

I am getting the following error, even after I unlock my website. Any reasons?

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Module         CustomErrorModule
Notification   SendResponse
Handler        StaticFile
Error Code     0x80070021
Config Error   Lock violation
Config File    \\?\C:\Web\En\web.config

<validation validateIntegratedModeConfiguration="false"/>
<httpErrors errorMode="DetailedLocalOnly" defaultPath="/Oops.aspx" defaultResponseMode="ExecuteURL">
<clear></clear>

I have done the following in applicationHost.config

<location path="mysite.net" overrideMode="Allow">
    <system.webServer>
        <handlers />
        <httpErrors />
    </system.webServer>
</location>
like image 698
tom Avatar asked Jun 17 '11 19:06

tom


5 Answers

I solved problem by doing this:

  1. Click "Start button"
  2. In the search box, enter "Turn windows features on or off"
  3. In the features window, Click: "Internet Information Services"
  4. Click: "World Wide Web Services"
  5. Click: "Application Development Features"
  6. Check (enable) the features. I checked all but CGI.
like image 154
Berdin Ege Turgut Avatar answered Oct 22 '22 02:10

Berdin Ege Turgut


I had a similar Lock violation error due to defaultPath. The following fixed it for me:

The only thing that it works is to go and remove manually "defaultPath" from "lockAttributes" attribute of xml node in the file %windir%\System32\inetsrv\config\applicationHost.config

You'll have to decide for yourself whether editing applicationHost.config is too dirty.

like image 45
Ben Challenor Avatar answered Oct 22 '22 03:10

Ben Challenor


As per my answer to this similar issue;

Try unlocking the relevant IIS configuration settings at server level, as follows:

  1. Open IIS Manager
  2. Select the server in the Connections pane
  3. Open Configuration Editor in the main pane
  4. In the Sections drop down, select the section to unlock, e.g. system.webServer > defaultPath
  5. Click Unlock Attribute in the right pane
  6. Repeat for any other settings which you need to unlock
  7. Restart IIS (optional) - Select the server in the Conncetions pane, click Restart in the Actions pane
like image 40
Chris Avatar answered Oct 22 '22 04:10

Chris


I edited the applicationHost.config but was still getting the error.

Completely forgot that after you edit applicationHost.config, you have to restart IIS.

like image 45
frattaro Avatar answered Oct 22 '22 04:10

frattaro


I encountered this before and it had something to do with a security setup. Check the web application folder permissions and make sure the following users and groups are included "ASPNET", "IIS_IUSRS", "IUSR".

Don't know if this will work for you or not, but worth a try I suppose.

like image 33
Marlon Avatar answered Oct 22 '22 04:10

Marlon