Monthly Archives: %sMarch 2011

CSS Sprites come to .NET WebForms/MVC

CSS Sprites come to .NET WebForms/MVC

By |March 16th, 2011|Coding, Uncategorized|0 Comments

Visual Studio 2010 SP 1

Visual Studio 2010 SP 1

By |March 12th, 2011|Coding, Uncategorized|0 Comments

JQuery 1.5 Cheat Sheet

JQuery 1.5 Cheat Sheet

By |March 11th, 2011|Coding, Uncategorized|0 Comments

Using System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(“/”)

If you are using WebConfigurationManager to retrieve your dbase connection strings please make note of one very important character:

System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(“/”)

I spent about 30 mins trying to track down the problem. I was able to read my connection strings on my local machine but not on production. What gives?

On our production environment the app was deployed as a virtual application. The code above would attempt to read from the default website the virtual app is running under.

If you wish to always retrieve the connection strings from your current app domain make sure to use (notice the tilde):

System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(“~”)

By |March 10th, 2011|Coding, Uncategorized|0 Comments

7 ways Github has changed the open source world

7 ways Github has changed the open source world

By |March 7th, 2011|Coding, Uncategorized|0 Comments