Event Broker exception

Topics: Exception Handling Application Block, Logging Application Block
Nov 29, 2011 at 6:48 AM

Hi Team,

could any one of you tell me the problem ,why i get this error.

Actually i identify the problem, the error is happening only when i used

"Microsoft.Practices.CompositeUI.EventBroker.EventTopicException" ,  if i comment the below exception policy  in app.config and execute my logging then everything is working fine for me.

<exceptionHandling>
    <exceptionPolicies>
      <add name="Default Policy">
        <exceptionTypes>
          <add name="AuthenticationException" type="System.Security.Authentication.AuthenticationException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
           postHandlingAction="None">
            <exceptionHandlers>
              <add name="Logging Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               logCategory="General" eventId="100" severity="Information" title="Enterprise Library Exception Handling"
               formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               priority="0" />
            </exceptionHandlers>
          </add>
          <add name="Exception" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
           postHandlingAction="NotifyRethrow">
            <exceptionHandlers>
              <add name="Logging Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling"
               formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
               priority="0" />
            </exceptionHandlers>
          </add>
          <add type="Microsoft.Practices.CompositeUI.EventBroker.EventTopicException, Microsoft.Practices.CompositeUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          postHandlingAction="NotifyRethrow" name="EventTopicException">
            <exceptionHandlers>
              <add logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling"
                formatterType="LC.IDRIS.UI.Infrastructure.Library.EntLib.EventTopicExceptionFormatter, LC.IDRIS.UI.Infrastructure.Library"
                priority="0" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                name="Logging Handler" />
            </exceptionHandlers>
          </add>
        </exceptionTypes>
      </add>
    </exceptionPolicies>
  </exceptionHandling>

 

 

This is my EventVwr trace information :

 

Log Name:      Application

Source:        System.ServiceModel 3.0.0.0

Date:          11-11-2011 16:20:05

Event ID:      8

Task Category: Message Logging

Level:         Information

Keywords:      Classic

Description:

Message Logging has been turned on. Sensitive information may be logged in the clear, even if it was encrypted on the wire: for example, message bodies.

 

 Process Name: IDRIS-Dev

 

 Process ID: 5144

 

Thanks

Ulaga

Nov 29, 2011 at 7:12 AM

Can you please post the full stacktrace including any InnerExceptions?

Thanks,

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com

Dec 5, 2011 at 5:47 AM

Hi Randy,

Thanks for ur response.

 

The problem is solved after removing publickkeytoken,culture and version=3.0.0.0 from app.config  for <add type="Microsoft.Practices.CompositeUI.EventBroker.EventTopicException,> and also added microsoft.practises.unity,microsoft.practices.unity.configuration,microsoft.practices.unity.interception dlls in reference of shell project.

Thanks

Ulaga