handling unhandled asp.net exceptions

March 17, 2008

At some point in their career everyone who creates ASP.NET applications has had issues with their site throwing exceptions that aren’t trapped.  We end up displaying a friendly error page at best, and at worst display the yellow ASP.NET error screen of death.  Generally speaking it’s best practice to configure your ASP.NET application to use friendly error pages so that your users aren’t presented with an exception and stack trace that are meaningless to them.

But how do you find out what exceptions are being thrown by users who are not you?  Over the years I’ve created many versions of the same type of code to handle these situations, so last night I created a project on codeplex that I’m calling sigh.net.  Essentially, sigh.net is a provider based unhandled exception handler for ASP.NET applications.  You can download the source at http://www.codeplex.com/sigh.

It’s extremely simple to use and doesn’t require you to change or add any code to your application.  I currently have an email provider created and am in the process of creating a SQL database provider.

Enjoy!


creating streaming tutorials with silverlight

March 5, 2008

I’ve wanted to work with Silverlight for some time now, though I’ve not had a use for the technology until recently.  I wanted to create tutorial videos for .netSavant to help people learn a bit about the product.  After a bit of searching I found a fantastic code project article written by Karl Shifflett that walks you through the entire process of not only creating a high quality screen capture tutorial, but publishing it as a streaming silverlight video.

Click Here to read the article

To date I’ve only created and published a single tutorial for .netSavant.  I’ve several more planned that will hopefully be a bit more polished as I become more comfortable talking, effectively, to no one.

http://www.dotnetsavant.com/Overview/Tutorials.aspx

Enjoy!


system.nullable vs. tryparse : revisited

March 1, 2008

As a followup to my system.nullable vs. tryparse entry, I’ve decided to publish the nullable parser code that I use in the data access system of .netSavant.

Download the C# file (in txt format)

Enjoy!


.netSavant rc1 released!

February 23, 2008

I’m proud to announce the release of my new code generating addin, .netSavant.  You can download the release candidate on the website from our download page.

The addin will help you create robust ado.net code with an intuitive drag and drop interface.  Additionally it will generate best practice implementations of three (currently) system interfaces:

  • System.IEquatable<T>
  • System.IDisposable
  • System.ICloneable

Currently I am working on the example code that will help to explain how to best use the ado.net code that is generated.  I’m also working on more and better F.A.Q. entries to answer those pesky little problems that come along with learning a new tool.

If there is any functionality that you’d like to see added to the addin let me know; I’ll entertain any reasonable request.

Enjoy!


writing an installer class for a visual studio.net addin

February 22, 2008

You’ve struggled through understanding commands and toolbars, pulled your hair out deciphering confusing API’s, and scarred your neighborhood with red-faced screams of frustration as you debug unhandled exceptions that crash visual studio.  After weeks, months or yes even years polishing an addin you still aren’t finished until you create an installer program.

The installer projects available in visual studio make creating an installer a trivial affair; however there are a few things to consider when making an installer for an addin project.

Read the rest of this entry »