ASP.NET impersonation problem


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!

<img alt="pass through or user specific" class="b-lazy" data-src="https://i.stack.imgur.com/UXthB.png" data-original="https://i.stack.imgur.com/UXthB.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />


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


Open IIS

</li> <li>

Go to your site, click on it

</li> <li>

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

</li> <li>

Make sure you have ASP.NET impersonation enabled

</li> </ul>

Impersonation should be enabled

<img alt="Enable impersonation" class="b-lazy" data-src="https://i.stack.imgur.com/FhWD8.png" data-original="https://i.stack.imgur.com/FhWD8.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />


You have to configure IIS to pass the security token to ASP.NET. See <a href="http://msdn.microsoft.com/en-us/library/aa292118%28v=vs.71%29.aspx" rel="nofollow">here</a>


Did you try turning on Windows Authentication?


  • How to add auto scroll bar vertically to cssbootstrap affix menu for smaller screens?
  • Identity column Vs Primary Key [closed]
  • Can arm64 cache be flushed from EL0?
  • Twilio's request parameter for speech
  • AJAX is coming back in the wrong order
  • php7 session_start() times out page
  • Giving a model knowledge of a many-to-many related model in django
  • dropzone.js not uploading
  • Constructor-Prototype cyclic reference JavaScript
  • Selenium can't locate iframe
  • iterating through image folder using javascript and adding the result in HTML
  • How to resolve authentication error in npm install?
  • React/Redux. Access state from other component
  • date changes on export kendoGrid
  • How can I run an Illustrator javascript on all files in a directory?
  • Visual Studio MSB3721 error when compiling a __device__ function call from another file
  • How to create mirrored image effect with CSS single element
  • Admob in ListView not clickable
  • Unable to start a WebView from an AsyncTask
  • separate tokens in batch file
  • C# code can't “see” the methods in my C++ dll
  • Excel File upload in asp.net using SqlBulkCopy
  • All Event listing on specified date in Google Calender api (V3) in java?
  • time column in sqlite using gorm
  • Ajax call on Multiple selection in Select box
  • How to run chrome.tabs.insertCSS from the background page on each page?
  • Typeahead.js does give me suggestions but doesn't select them
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • matrix multiplication apache pig
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Spring Boot fails to start
  • Unity3d lost directional light shadows after generate assetBundle (.unity3d file)
  • Computing the discrete fourier transform of audio data with FFTW
  • Grails - How to implement a foreign key relationship not using an id column?
  • How to use FirstOrDefault inside Include
  • PHP Permalinks.. how to change?
  • media foundation H264 decoder not working properly
  • Running R's aov() mixed effects model from Python using rpy2
  • Access to a Matlab gui from the web