using "Exception managment" block
I am writing a simple code using exception management block.In the documentation it says in the app config file you can set the if the exception mangement block to be turned "on" or "off".
so I incorporated the changes as shown below to the app.config file (in my solution named "WindowsApplication1"). though i set it to "off", the exception managment block gets invoked.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configsections>
<section name="exceptionmanagement" type="microsoft.applicationblocks.exceptionmanagement.exceptionmanagersectionhandler, microsoft.applicationblocks.exceptionmanagement" />
</configsections>
<exceptionManagement mode="off" >
<publisher assembly="Microsoft.Applicationblocks.ExceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher" logname="MycustomLog" applicationname="My EMABTest App" />
</exceptionManagement>
</configuration>