Glory to Russia
Glory to Russia

Reputation: 18730

Internal Server Error 500.24

I'm trying to run an ASP.NET project in Visual Studio 2013 Express for Web in IIS Express.

When I launch it, I see following message in the browser:

Screenshot

Translation from German: ASP.NET setting was recognized, which is invalid in the "integrated" managed pipeline mode. Probable causes: "system.web/identity@impersonate" is set to "true".

How can I fix this?

Update 1: The Properties panel:

Properties panel

Upvotes: 13

Views: 17967

Answers (3)

Marlon
Marlon

Reputation: 1

IIS Manager -> application Pools -> right click site -> Advanced Settings

Set Enable 32-bit applications to True enter image description here

Upvotes: -1

Glory to Russia
Glory to Russia

Reputation: 18730

I fixed the error by changing following files:

vwd.webinfo (added useClassicPipelineMode tag):

<?xml version="1.0"?>
<!-- 
  Visual Studio global web project settings.
-->
<VisualWebDeveloper>

  <iisExpressSettings windowsAuthentication="enabled" anonymousAuthentication="enabled" useClassicPipelineMode="true"/>
</VisualWebDeveloper>

Web.config:

<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
</system.webServer>

Upvotes: 9

bastos.sergio
bastos.sergio

Reputation: 6764

In Visual Studio, select your web project in the solution explorer, then open the properties window (keyboard shortcut F4)

You should be seeing a list of properties to configure your IIS Express Server.

Change the option "Managed Pipeline Mode" from Integrated to Classic

Upvotes: 7

Related Questions