Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Cannot catch impersonation exception if bad usr or pwd in web.conf

Reply
Thread Tools

Cannot catch impersonation exception if bad usr or pwd in web.conf

 
 
Wim VH
Guest
Posts: n/a
 
      09-22-2006
I use impersonation in the web.config file. This works fine... however, when
a username and/or password is provided that are not valid on the system, an
exception is raised (which is normal!) BUT it seems there is no way to chatch
this exception.

It tried using the Application_OnError in the global.asax, but it isn't
called.

The exception I see in the "default" window of aps.net is "Could not create
Windows user token from the credentials specified in the config file. Error
from the operating system 'Logon failure: unknown user name or bad password".

This is correct, however I would like to show a page (if needen, it might be
in another web app that doesn't use impersonation) where I can tell something
like "go to you web admin and refer to item xy in the user manual of product
z".

Is this possible

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'typeid__XTQ2_3std9exception_'in load module '/usr/lib/libcryptograph2_64.sl' TsanChung Java 4 09-21-2008 09:16 PM
#!/usr/bin/env python vs. #!/usr/bin/python Yves Dorfsman Python 27 05-10-2008 03:03 AM
#!/usr/bin/python or #!/usr/bin/env python? John Salerno Python 30 08-10-2006 05:20 AM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
"User cannot change pwd" and "Pwd never expire" by using Directory Thauhtopa ASP .Net Security 4 12-07-2004 06:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57