This project has moved. For the latest updates, please go here.

Exceptions are tweeted!

Jan 19, 2012 at 5:22 PM

I got a strange behaviour recently. Here is how I use Linq2twitter:

Context: MVC app for a startup prelaunch page which collects email addresses. The email is stored in a database and a tweet is sent to a private twitter account so that I get notifications. The tweet command is used asynchronously like this (in the controller action):

Task.Factory.StartNew(() =>
        action.Invoke(); // action is the actual Action that calls the linq2twitter API
}, TaskCreationOptions.LongRunning);

It works most of the time, but recently I received 2 strange tweets with the text of the exception:

1. Object reference not set to an instance of an object.

2. Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.

Is it possible that if your code raises an exception it is tweeted instead of the expected text? Do you have an idea on what happens?


Jan 19, 2012 at 6:47 PM

You can delete or at least disregard this message. Sorry for that.