Elmah with Programmatic Configuration

If you are not familiar with the Elmah library, that’s okay, it’s a really basic concept. Simply put, it’s a lightweight easy to use library that integrates with ASP.NET that will capture all uncaught errors and store them for you...

Read More

.NET Harmony with EF Code First, ASP.NET Web API, & OData

This week I will be presenting at a local .NET User Group meeting in Barrie, ON (www.northoftoronto.net) some of the efficiency's to be gained out of the latest from Entity Framework Code First, ASP.NET Web API, and OData (and don't...

Read More

.NET Bundling & Minification – 10 Key Notes

Bundling and Minification support within ASP.NET (Web Forms & MVC) finally arrived in .NET 4.0, and has had a good course of use over the past year. If you are anything like me and upgrading your projects from .NET 3.5...

Read More

.NET Binary Object Serialization without Marking as Serializable

  Okay, so you got something you need to binary serialize in .NET for whatever reason. Perhaps your saving the state of an object for hydration at a later time (most common), but you find yourself in such a situation...

Read More

Environment.SpecialFolder

In case you didn’t know about it, in .NET there is a fantastic Enumeration that is a part of the “Environment” static class that basically gives you the folder paths to a couple dozen different specific local directories on a...

Read More

Background Threads in ASP.NET with IRegisterObject

Running or spawning off some threads in ASP.NET is a fantastic way to get some work done faster. However, it is also a recipe for disaster if you are not careful. Interestingly enough, I ran across a blog posting by...

Read More

DataTable .Select and .RowFilter Escaping with Apostrophe’s

One of the great things about the DataTable or DataView is its ease of ability to Sort and Filter data. Often I utilize the .Select method of DataTable. This involves writing a short where clause string to provide to the...

Read More

MSBuild Can’t Find Secondary References

That is right, you read the title correctly. MSBuild in versions 2005, 2008 and 2010 of VS does not find and include secondary references. This means that if you have a project Class Library that contains “Content” items that are...

Read More

External Project Resource (RESX) Consumption

Using resource files can sometimes be troublesome when you need a particular resource in both a Web application mark-up or code-behind and inside a business tier or data model. When you push the Resx file further back into you’re project,...

Read More

Retrieving an Assembly PublicKeyToken

Getting the PublicKeyToken  The PublicKeyToken always tends to slow you down it seems. Your moving right along in development, then you have to jet out of Visual Studio and grab the public key token. Some people I know use reflector...

Read More