﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Kazi Manzur Rashid commented on ASP.Net Ajax, Error Handling and WTF</title><description>Maybe you can take a look at the following:
  
http://weblogs.asp.net/rashid/archive/2007/09/19/new-project-asp-net-ajax-exception-logging.aspx
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment11</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment11</guid><pubDate>Mon, 07 Jan 2008 14:15:17 GMT</pubDate></item><item><title>Andrey Shchekin commented on ASP.Net Ajax, Error Handling and WTF</title><description>ASP.NET in some places is the worst Microsoft framework I have ever seen.
  
The only kind of unsolvable problems my team hits periodically is the underpowered serialization model whiich is also nearly unextensible.
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment10</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment10</guid><pubDate>Mon, 07 Jan 2008 09:51:56 GMT</pubDate></item><item><title>Alex Henderson commented on ASP.Net Ajax, Error Handling and WTF</title><description>Desperate times call for desperate measures - I wouldn't seriously consider introducing PostSharp at such a later hour either, that way lays madness.
  
  
I wonder what the rationale to write it that way was to begin with.  
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment9</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment9</guid><pubDate>Sun, 06 Jan 2008 20:29:28 GMT</pubDate></item><item><title>Ayende Rahien commented on ASP.Net Ajax, Error Handling and WTF</title><description>I probably could, but I don't want to introduce it now.
  
Going to byte code weaving just to get logging on exceptions is crazy.
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment8</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment8</guid><pubDate>Sun, 06 Jan 2008 20:24:54 GMT</pubDate></item><item><title>Alex Henderson commented on ASP.Net Ajax, Error Handling and WTF</title><description>Ugh... that's not pleasant!
  
  
Just a thought - but couldn't you get at least get partial exception coverage (excluding serialization issues occurring outside of the method call) by using PostSharp with an OnException aspect - at least you're only having to decorate each class with a single attribute to get some logging then.
  
  
Admittedly not a nice solution... but it's better then no logging at all ;o)
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment7</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment7</guid><pubDate>Sun, 06 Jan 2008 20:11:12 GMT</pubDate></item><item><title>Ayende Rahien commented on ASP.Net Ajax, Error Handling and WTF</title><description>El,
  
Error handling is a key part of any product.
  
Sorry, getting it wrong. Getting it _that_ wrong is very bad.
  
Getting it _that_ wrong and having no way in to fix it, even worse.
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment6</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment6</guid><pubDate>Sun, 06 Jan 2008 19:13:04 GMT</pubDate></item><item><title>El Guapo commented on ASP.Net Ajax, Error Handling and WTF</title><description>It's still a very young product, and script services are brand new. This is the kind of feedback they would like, but probably with a little less derision and scorn. 
  
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment5</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment5</guid><pubDate>Sun, 06 Jan 2008 18:55:48 GMT</pubDate></item><item><title>Ayende Rahien commented on ASP.Net Ajax, Error Handling and WTF</title><description>Fred,
  
It is not unhandled.
  
It is handled in a way that is not appropriate.
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment4</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment4</guid><pubDate>Sun, 06 Jan 2008 17:59:01 GMT</pubDate></item><item><title>Fred Hirschfeld commented on ASP.Net Ajax, Error Handling and WTF</title><description>If it is throwing an exception, could you use the AppDomain UnhandledException event to trap those that are not passed through the application_error?
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment3</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment3</guid><pubDate>Sun, 06 Jan 2008 17:01:27 GMT</pubDate></item><item><title>Ayende Rahien commented on ASP.Net Ajax, Error Handling and WTF</title><description>Justin,
  
No, there isn't a script manager involved, because I am talking specifically about using script services only.
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment2</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment2</guid><pubDate>Sun, 06 Jan 2008 15:41:26 GMT</pubDate></item><item><title>Justin-Josef Angel [MVP] commented on ASP.Net Ajax, Error Handling and WTF</title><description>I'm assuming you're working with ASP.Net on this one. 
  
You should use the ScriptManager.AsyncPostBackError event. 
  
  
If you inherited from ScriptManager before using it - just write some in "myScriptManager" that catchs the exception and logs it. 
  
If you havn't inherited the ScriptManager but are using a BasePage you can get the ScriptManager via: "ScriptManager.GetCurrent(this.Page)" and then hook up into it's events. 
  
  
Additionally, using the "AsyncPostBackErrorMessage" you can change the error message to something friendly like "Something happened. We logged it. Don't worry about it" from inside the event's EventHandler. 
</description><link>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment1</link><guid>http://ayende.com/3084/asp-net-ajax-error-handling-and-wtf#comment1</guid><pubDate>Sun, 06 Jan 2008 15:35:49 GMT</pubDate></item></channel></rss>