Solved

How to use impersonation in 2.0

Posted on 2008-06-11
3
785 Views
Last Modified: 2013-11-26
Based on MSDN, I attempted to use the following recommended code snippet in my web.config file.

<authentication mode=...
<identity impersonate="true" username="TestUser" password="P@ssw0rd" />
...
</authentication>
When I launch the application, I receive the following error:
Unrecognized element 'identity"
Does anyone know how to make this work?

0
Comment
Question by:stevep01
3 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 125 total points
ID: 21766932
Check this link:

How to implement impersonation in an ASP.NET application
http://support.microsoft.com/kb/306158
0
 
LVL 1

Assisted Solution

by:k3m
k3m earned 125 total points
ID: 22670236
impersonate goes in the system.web bit not authentication

<system.web>
<identity impersonate="true" userName="myUser" password="myPassword"/>
</system.web>
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question