« New DelMar IT Keyboards | Main | C# Coding Standards »

August 09, 2005

Appropriate Error Messages for ASP.NET Web Services

I'm working on a web service and throwing some exceptions. By default, ASP.NET sends along a bunch of debug information. To turn this off and just send the "helpful" message to the client change the web.config file.

This

<customErrors mode="off"/>

Should become

<customErrors mode="RemoteOnly"/>

That will only show the debug info on the local machine but remote clients won't get all the debug info.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service09172002.asp
http://www.dotnet247.com/247reference/msgs/10/54567.aspx

Posted by mikel at August 9, 2005 09:47 AM

Trackback Pings

TrackBack URL for this entry:
http://WWW.mjberger.COM/cgi-bin/mt-tb.cgi/184

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?