Exception Handling

C

C

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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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.

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top