WindowsIdentity.GetCurrent()

G

Guest

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?
 
G

Guest

Log on the same for both desktop and laptop. Note, this is during
development. No problem on our Production IIS.

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top