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



hi .net gurus here is my question " how does impersonate in asp.net works? explain with goo..

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

hi .net gurus here is my question " how does impersonate in asp.net works? explain with goo..

Answer / h

good

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

What is a web api? Which protocol is used in a web api?

0 Answers  


If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?

1 Answers  


Can One website be made using two different languages like c#,vb.net etc......

4 Answers   ABC,


Which institute provide good Project training on .Net technologies in hyd?

5 Answers  


Which namespace do the classes, allowing you to support COM functionality, are located?

1 Answers  






What's the advantage of using System.Text.StringBuilder over System.String?

3 Answers   IBM, IdeaLake, Infosys,


How much data (Max K) can go into a QueryString?

4 Answers   TCS, WEB,


when a request is made in Life cycle of ASP.NET page .

0 Answers  


From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions)

4 Answers   Microsoft,


What is the latest version of asp.net?

0 Answers  


what is pagination in asp.net ?

1 Answers   Netsweeper,


what is the difference between sql 2000 and 2005?

2 Answers   Cognizant,


Categories