Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 05, 2012 07:42 AM by VikasMore
0 Points
2 Posts
Jan 05, 2012 07:42 AM|LINK
I am new to Ent Lib. I have started with ver 5, and with Exception block.
I get following error:
Activation error occured while trying to get instance of type ExceptionManager.
I have included all the necessary references.
My code:
protected
void ButtonWithExceptionHandling_Click(object sender, EventArgs e)
{
try
int i = 10;
int j = 0;
int res = i / j;
LabelShowMsg.Text = res.ToString();
} catch (Exception ex)
LabelShowMsg.Text = ex.Message;
ExceptionManager exmngr = EnterpriseLibraryContainer.Current.GetInstance<ExceptionManager>();
bool rethrow = exmngr.HandleException(ex, "TestEPolicy1");
}
VikasMore
0 Points
2 Posts
Activation error occured while trying to get instance of type ExceptionManager
Jan 05, 2012 07:42 AM|LINK
I am new to Ent Lib. I have started with ver 5, and with Exception block.
I get following error:
Activation error occured while trying to get instance of type ExceptionManager.
I have included all the necessary references.
My code:
protected
void ButtonWithExceptionHandling_Click(object sender, EventArgs e)
{
try
{
int i = 10;
int j = 0;
int res = i / j;
LabelShowMsg.Text = res.ToString();
} catch (Exception ex)
{
LabelShowMsg.Text = ex.Message;
ExceptionManager exmngr = EnterpriseLibraryContainer.Current.GetInstance<ExceptionManager>();
bool rethrow = exmngr.HandleException(ex, "TestEPolicy1");
}
}