Exception handling

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i have some error handling code in my global.asax:

void Application_Error(object sender, EventArgs e)

Is there anyway to acquire the UserID in the global?

thanks,
rodchar
 
i have some error handling code in my global.asax:

void Application_Error(object sender, EventArgs e)

Is there anyway to acquire the UserID in the global?

What UserID are you talking about...?
 
I'm sorry the user name. Usually i can get this by saying
User.Identity.Username.

Oh right...

I've just tried it in the Global.asax of an app which uses Integrated
Windows Authentication, and it worked fine...

However, the actual property is Name, not Username - is that your
problem...?
 
I might be missing the namespace?


Mark Rae said:
Oh right...

I've just tried it in the Global.asax of an app which uses Integrated
Windows Authentication, and it worked fine...

However, the actual property is Name, not Username - is that your
problem...?
 
Back
Top