Dec 17 12:58

Checking assembly dependencies for .NET

Are you getting the dreaded "Could not load file or assembly" error in C#? Well there might be several causes of that, the most difficult to track down and fix is a missing assembly dependency.

Dec 03 15:08

Google's Public DNS

Announced today was Google's free public DNS servers. Whats different is that these servers are free of redirections to advertising pages on DNS resolutions of non-existant sites. When the DNS fails, it fails according to standards.

To use their servers set your DNS lookup servers to 8.8.8.8 or 8.8.4.4 and everything should work.
See their site for more details.
http://code.google.com/speed/public-dns/

Nov 23 12:13

Server Utility Functions for Non-Web Apps

This is just a quick post. Normally, when one needs to use such functions as HtmlEncode, HtmlDecode, UrlEncode, UrlDecode and related functions, one would normally go to the Server class in your current HttpContext.

However, in the case that you're running in a console application for any particular reason, you don't have an HttpContext.Current, and you would then throw a "Object reference not set to an instance of an object" (aka Null Reference Exception).

Nov 07 10:50

reCAPTCHA for ASP.NET MVC that uses ModelState

Here is a reCAPTCHA control for ASP.NET MVC that uses ModelState. This code includes the ActionFilter as well as the HTML Helper for rendering the reCAPTCHA control.

Oct 17 09:47

Adding a container to ValidationSummary helper in ASP.NET MVC

The one thing that is annoying about the validation summary HTML Helper in ASP.NET MVC is that it doesn't render a container element. Problem solved...

Oct 09 18:03

Generic XML Serialization Class

We had to add XML Serialization functionality to a bunch of different classes. Here is a nice generic class for adding static methods for Serialization and Deserialization to any of your classes...

Oct 07 16:57

Re-throwing Exceptions in C# with InternalPreserveStackTrace

It is often the case that you need to re-throw an exception after handling it. The common problem with re-throwing exceptions is that you often lose stack trace information that can be extraordinarily useful for debugging purposes. I'll explain a technique that can be used to force the entire stack to be propagated when an exception is re-thrown.

Sep 23 08:41

Solving xsd generation error: 'The element .... is missing'

In attempting to build source from an XML schema using the XSD command line tool, I kept getting an error about an element missing.

Sep 21 22:29

Enum DropDownList in ASP.NET MVC

I created an HTML Helper for rendering a dropdownlist aka select element from the name/value pairs in an enum and thought I would share.

Sep 11 14:32

Use GMail with Rails ActionMailer

Sending ActionMailer emails through GMail is much easier now that Ruby on Rails natively supports TLS connections.

Recent comments