psj01
psj01

Reputation: 3245

Where to check the default impersonation setting in IIS Express?

On my computer when I start the IIS Express and navigate to localhost:8080, I get this 500.24 Error. and it suggests that the most likely cause is: system.web/identity@impersonate is set to true.

enter image description here

To get rid of this error I had to add a new web.config file to C:\Users\joeb\Documents\My Web Sites\WebSite1\Web.config, with the following content:

<?xml version="1.0"?>

<configuration>

<system.web>
  <identity impersonate="false"/>
</system.web>

</configuration>

Can anyone point me in the right direction as to why I have to add this web.config file here to make this error go away.

I tried this on a different computer and it works out of the box with out having this web.config file.

I'm not sure whats causing this problem... Everything I read about IIS Express and impersonation is telling me that the default value for impersonation is set to false.

Does anyone have any idea why this is happening here.

Upvotes: 1

Views: 626

Answers (1)

psj01
psj01

Reputation: 3245

As Lex Li mentioned in the comments, the problem was in my root web.config file [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config]

It had:

<identity impersonate="true"/> 

Once I commented that out .. it worked fine.

Hopefully this will help other people who face the same issue.

Upvotes: 1

Related Questions