Custom Membership Provider - Catching Exceptions

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
Hi,

I am writing a custom membership provider using C# in .Net and I have
been trying to catch exceptions raised by my custom membership
provider class in my aspx page. I have already written a custom
membership class, which throws an exception. I am throwing the same
exception in the catch block of the custom class thinking that it
would be caught by the .aspx page.

Since I am using login control, shipped with VS 2005, for
authentication, I would like to understand how these exceptions can
be
caught with in the .aspx page. Specifically, I would like to know
which process invokes ValidateUser method of my custom class. This
custom class is an implementation of an abstract class named
"Membership" class. I don't remember the exact name of the abstract
class as the source code is not accessible to me at this point in
time.

To add to the info above, I have the custom membership provider in a
separate project which is ofcourse part of the same solution as my
web
app where I am trying to catch the exceptions.

If possible, please revert back at the earliest. If there's any
clarification reqd abt this scenario, please do let me know.
Thanks,
--Sunny



More...

View All Our Microsoft Related Feeds
 
Back
Top