The policy with name 'Generic Exception' cannot be found. Exception handling aborted. RRS feed

  • Question

  • User1720628292 posted

    Hi ,

    am creating one console app for sending mails. am using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll for handling exception in my code. but when i debug the code am getting this exception 'The policy with name 'Generic Exception' cannot be found. Exception handling aborted.'.  i didnt add any policy in my app.config.. version 5.0.414.0

    i have added the following statement in configsection

     <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />

    if i remove the above statement  am getting err like

    activation err occurred while trying to get instance of type exception manager,key

    Friday, April 12, 2019 3:52 AM

All replies

  • User765422875 posted

    The Enterprise Library is no longer under development. I would not use it. What are you trying to do? Catch Exceptions?

    Monday, April 15, 2019 2:07 PM