Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Impersonation issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Silmar - 15 Dec 2007 10:52 GMT
Hi!

My testing environment is made of three W2k3 servers. One is DC, on second
there is IIS with my ASP.NET 2.0 application, third one is just a client. In
web.config I've got <authentication mode="Windows" /> and <identity
impersonate="TRUE" />. In IIS I disabled anonymous access, only integrated
authentication is left.

If I access my application from second server everything works OK. But when
I access it from third one I've got an error message which I paste below.
What I found is an event from application event log, source ASP.NET
2.0.50727.0 and event ID 1309. In it's description I found that thread
serving my request "Is impersonating: False". After a little googling I
found almost acceptable solution. I enabled anonymous access on IIS but as
user I set domain user. And that helped, now I can access my application
remotly and it works. However I lost information about user who is accessing
it, now it is always user I set for anonymous access.

Does anyone know how to solve this?

Regards
Tomek
Alexey Smirnov - 15 Dec 2007 11:54 GMT
> Hi!
>
[quoted text clipped - 18 lines]
> Regards
> Tomek

When impersonation is on, ASP.NET impersonates the current web user.
It sounds like you run the web application using a local account
server3\username, or with an account that doesn't have rights on the
web application server.

I'm not sure what do you need to get with impersonation, but if you
just want to get a username of the user you can do it without using
impersonation. Make impersonation=false in the web.config file and use
User.Identity.Name to retrieve the name.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.