hi .net gurus
here is my question " how does impersonate in asp.net works?
explain with good example"
Answers were Sorted based on User's Feedback
Answer / karthika.s
At times users access a resource as though they were someone
else. This is known as impersonation.In ASP.NET, when
impersonation is turned off, the resources can be accessed
using a "local system process" account. When impersonation
is turned on, ASP.NET executes every resource using the
account of a specified user who is authenticated when the
user makes the request
It is easy to implement impersonation in ASP.Net. You can
use the Web.config file that is found in the root directory
of the application to enable or disable impersonation for a
particular application.
The application can also use the authenticated identity that
is received from the IIS if you enable impersonation. If you
are going to implement impersonation for an ASP.Net
application you can do so in three ways.
Just open up the web.config file, found in the root
directory of the application. By default impersonation is
disabled and you can find this with the line,
<identity impersonate="false" />
With the above settings the application worker process
account for the ASP.Net application is used. You can enable
impersonation by,
<identity impersonate="true" />
With this setting an authenticated user account or the
anonymous internet user account is used. If you want to
enable impersonation for a particular user account then you
have to use the following syntax.
<identity impersonate="true" userName="user_name"
password="user_password" />
By mentioning the user like this ASP.Net uses that account
specifically to run the application.
| Is This Answer Correct ? | 17 Yes | 0 No |
What are three ways that you can use a compare validator?
Explain the benefits of viewstate?
What does mvc represent in asp.net? : asp.net mvc
What New Features comes with ASP.NET Web API 2.0?
Explain how cookies work.
Describe the difference between inline and code behind - which is best in a?
What is the use of view state?
Disable Mouse right click on web page in asp.net?
How about the security in Activex DLL and Activex EXE ?
What is the life-span of the items in the viewstate?
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
How do you remove duplicates without using remove duplicate stage?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)