Enterprise Library - Exception Handling Application Block

G

Guest

Howdy? Good.

I am getting this error when the Exception Handling Application Block when
it tries to create my exception handler. Here is the error.

Constructor on type 'MyCompany.Exception.MyCompanyExceptionHandler' not found.

In my code, the contructor for the handler is as follows:

public MyCompanyException() : base()
{
Initialize();
}

or

public MyCompanyException()
{
Initialize();
}

I tried debugging thru the exception handling application block, but I find
it quiet convoluted and very difficult to digest. So, your help would be
appreciated.

Thanks.
J
 
J

Joerg Jooss

Thus wrote thejackofall,
Howdy? Good.

I am getting this error when the Exception Handling Application Block
when it tries to create my exception handler. Here is the error.

Constructor on type 'MyCompany.Exception.MyCompanyExceptionHandler'
not found.

In my code, the contructor for the handler is as follows:

public MyCompanyException() : base()
{
Initialize();
}
or

public MyCompanyException()
{
Initialize();
}

Just curious... that's the wrong class or a typo, isn't it?
I tried debugging thru the exception handling application block, but I
find it quiet convoluted and very difficult to digest. So, your help
would be appreciated.

An implicit requirement for any IExceptionHandler is to have a constructor
of the following form:
MyExceptionHandler(NameValueCollection coll) { //... }

EL 2.0 only uses this constructor. Due to a bug, you can only ignore the
coll parameter.

Cheers,
 

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

Top