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.Services.Protocols.SoapException: Server was unable to process
request. ---> System.Exception: Error: Cannot Update where Record Status is
Closed'. Record ID 369448 at FCS.FinesBL.CreateFine(XmlDocument 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.

Re: Exception Handling by Ignacio

Ignacio
Fri May 09 14:19:04 CDT 2008

On May 9, 4:34=A0am, C <C...@discussions.microsoft.com> 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 =A0is displayed.=

> Record ID 369448
>
> When I deploy my app to both the System Test and UAT environments the user=

> gets below :
>
> -- System.Web.Services.Protocols.SoapException: Server was unable to proce=
ss
> request. ---> System.Exception: Error: Cannot Update where Record Status i=
s
> Closed'. Record ID 369448 at FCS.FinesBL.CreateFine(XmlDocument FinesXML) =
---
> End of inner exception stack trace ---
>
> Anyone know why the extra exception details are displayed in System Test a=
nd
> 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)

RE: Exception Handling by mudassar

mudassar
Sun Jun 08 03:01:01 CDT 2008

Try displaying the message as returned by

Ex.Message()


--
Regards,
Mudassar Hassan
Software Engineer
http://mudassarhassan.spaces.live.com/


"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.Services.Protocols.SoapException: Server was unable to process
> request. ---> System.Exception: Error: Cannot Update where Record Status is
> Closed'. Record ID 369448 at FCS.FinesBL.CreateFine(XmlDocument 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.
>