Exception Handling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Qw==?=

    Exception Handling

    In my development environment when an error is raised in my Buiness Layer I
    rethrow the exception and the message of he Exception is displayed.

    For example : Cannot Update where Record Status is Closed is displayed.
    Record ID 369448

    When I deploy my app to both the System Test and UAT environments the user
    gets below :

    -- System.Web.Serv ices.Protocols. SoapException: Server was unable to process
    request. ---System.Exceptio n: Error: Cannot Update where Record Status is
    Closed'. Record ID 369448 at FCS.FinesBL.Cre ateFine(XmlDocu ment FinesXML) ---
    End of inner exception stack trace ---

    Anyone know why the extra exception details are displayed in System Test and
    UAT and not in or development environment?

    I am baffled.

  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: Exception Handling

    On May 9, 4:34 am, C <C...@discussio ns.microsoft.co mwrote:
    In my development environment when an error is raised in my Buiness Layer I
    rethrow the exception and the message of he Exception is displayed.
    >
    For example : Cannot Update where Record Status is Closed  is displayed.
    Record ID 369448
    >
    When I deploy my app to both the System Test and UAT environments the user
    gets below :
    >
    -- System.Web.Serv ices.Protocols. SoapException: Server was unable to process
    request. ---System.Exceptio n: Error: Cannot Update where Record Status is
    Closed'. Record ID 369448 at FCS.FinesBL.Cre ateFine(XmlDocu ment FinesXML) ---
    End of inner exception stack trace ---
    >
    Anyone know why the extra exception details are displayed in System Test and
    UAT and not in or development environment?
    >
    I am baffled.
    It might be a config option, check the web.config of both deployments.
    If not check the config files of the framework (machine.config , etc)

    Comment

    • =?Utf-8?B?TXVkYXNzYXIgSGFzc2Fu?=

      #3
      RE: Exception Handling

      Try displaying the message as returned by

      Ex.Message()


      --
      Regards,
      Mudassar Hassan
      Software Engineer
      Technical endeavors to Microsoft Dynamics 365, Dynamics CRM, Azure and SharePoint



      "C" wrote:
      In my development environment when an error is raised in my Buiness Layer I
      rethrow the exception and the message of he Exception is displayed.
      >
      For example : Cannot Update where Record Status is Closed is displayed.
      Record ID 369448
      >
      When I deploy my app to both the System Test and UAT environments the user
      gets below :
      >
      -- System.Web.Serv ices.Protocols. SoapException: Server was unable to process
      request. ---System.Exceptio n: Error: Cannot Update where Record Status is
      Closed'. Record ID 369448 at FCS.FinesBL.Cre ateFine(XmlDocu ment FinesXML) ---
      End of inner exception stack trace ---
      >
      Anyone know why the extra exception details are displayed in System Test and
      UAT and not in or development environment?
      >
      I am baffled.
      >

      Comment

      Working...