문제

I am trying to get my IIS 7.5 to impersonate the account of the user accessing a site through a browser.

If I use...

    <identity impersonate="true" userName="mydomain\myusername" password="mypassword" />

it works just fine. However, if I use...

    <identity impersonate="true" />

It won't pick up the user. Am I missing some code? Or is this an IIS 7.5 configuration issue?

도움이 되었습니까?

해결책

I posted a previous answer, but I think this one applies better

Try to select if you are using a specific user or pass through. Not 100% sure if this solves your problem, just trying to help!

pass through or user specific

다른 팁

On the enabling impersonation, check what types of security you have enabled:

  • Open IIS

  • Go to your site, click on it

  • Click on authentication (a blue guy with a lock icon)

  • Make sure you have ASP.NET impersonation enabled

Impersonation should be enabled

Enable impersonation

You have to configure IIS to pass the security token to ASP.NET. See here

Did you try turning on Windows Authentication?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top