Solved

How to use impersonation in 2.0

Posted on 2008-06-11
3
786 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding bootstrap to only Content page and NOT master page 1 65
Amazon S3 Images with .Net 3 29
Get sourcecode path 14 46
Installing .NET 3.5 on Windows Server 2012 1 55
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

713 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