IIS ASP - WindowsIdentity.GetCurrent()

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > April 2006 > WindowsIdentity.GetCurrent()





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WindowsIdentity.GetCurrent()
Roger

2006-04-27, 7:51 am

I have a desktop and laptop for development.

Both are xps and both are sp2 and both are update to date with security
patches.



On my desktop when I run the LogonUser api function call. It will create a
windowsidentity object and whom I am attemptting to log in as, but if I look
in command window and type "WindowsIdentity.GetCurrent()" the name property
is null



But, if I step through the same thing on my laptop, the
WindowsIdentity.GetCurrent()" returns the user I am logging in as.



Looked at the personal web setting and they are exactly the same. What might
I have differently setup on my desktop compared to my laptop.



This is what is return in the name property of the
WindowsIdentity.GetCurrent():



Name: <error: an exception of type: {System.ApplicationException} occurred>



And on the laptop, yea you can say it returns the form authentication users
identity.



Talked to another developer and he thinks my vs version is bad and needs to
be reinstalled.



Do you have any ideas?




Mike Brind

2006-04-27, 7:51 am

=?Utf-8?B?Um9nZXI=?= <Roger@discussions.microsoft.com> wrote in
news:C9219F49-9252-49E4-879D-ACF96CB2A9D6@microsoft.com:

> I have a desktop and laptop for development.
>
> Both are xps and both are sp2 and both are update to date with
> security patches.
>
> On my desktop when I run the LogonUser api function call. It will
> create a windowsidentity object and whom I am attemptting to log in
> as, but if I look in command window and type
> "WindowsIdentity.GetCurrent()" the name property is null
>
> But, if I step through the same thing on my laptop, the
> WindowsIdentity.GetCurrent()" returns the user I am logging in as.
>
>
> Looked at the personal web setting and they are exactly the same. What
> might I have differently setup on my desktop compared to my laptop.
>
> This is what is return in the name property of the
> WindowsIdentity.GetCurrent():
>
> Name: <error: an exception of type: {System.ApplicationException}
> occurred>
> And on the laptop, yea you can say it returns the form authentication
> users identity
>
> Talked to another developer and he thinks my vs version is bad and
> needs to be reinstalled.
>
> Do you have any ideas?



This news group is for classic ASP. Is this an ASP.NET question? If
so, it's an entirely different technology, and you are more likely to
get relevant help over at microsoft.public.dotnet.framework.aspnet.


--
Mike Brind
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com