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
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
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
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.