Steve Smith's Blog

Musings on Software and the Developer Community

Archives - March 2010

How To: Automatically Remove www from a Domain in IIS7

I recently moved the DevMavens.com site from one server to another and needed to ensure that the www.devmavens.com domain correctly redirected to simply devmavens.com .  This is important for SEO reasons (you don’t want multiple domains to refer to the same content) and it’s generally better to...

How To: Automatically Remove www from a Domain in IIS7 →

Posted on Monday, March 29 2010         No Comments

ASP.NET MVC 2 and Windows Azure

If you upgrade an Azure web instance to use ASP.NET MVC 2, make sure you mark the System.Web.Mvc reference as Copy Local = true.  Otherwise, your deployment will fail.  And you won’t get any good feedback from Windows Azure as to the cause of the problem.  So you’ll start searching the...

ASP.NET MVC 2 and Windows Azure →

Posted on Wednesday, March 17 2010         1 Comment

Simple Branching and Merging with SVN

It’s a good idea not to do too much work without checking something into source control.  By “too much work” I mean typically on the order of a couple of hours at most, and certainly it’s a good practice to check in anything you have before you leave the office for the day.  But what if your...

Simple Branching and Merging with SVN →

Posted on Tuesday, March 16 2010         1 Comment

Fix: SqlDeploy Task Fails with NullReferenceException at ExtractPassword

Still working on getting a TeamCity build working ( see my last post ).  Latest exception is: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120, 5): error MSB4018: The "SqlDeployTask" task failed unexpectedly. System.NullReferenceException...

Fix: SqlDeploy Task Fails with NullReferenceException at ExtractPassword →

Posted on Wednesday, March 10 2010         1 Comment

Could Not Load Type Microsoft.Build.Framework.BuildEventContext

Setting up a TeamCity build and got this error: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(80, 5): error MSB4018: The "SqlSetupDeployTask" task failed unexpectedly. System.TypeLoadException: Could not load type 'Microsoft.Build.Framework...

Could Not Load Type Microsoft.Build.Framework.BuildEventContext →

Posted on Wednesday, March 10 2010         2 Comments

Fix: Can’t Change or Remove Visual Studio 2008 from DVD

If you installed Visual Studio 2008 on a 64-bit operating system, you may have trouble when you try ad add or remove functionality by inserting the disk (or remounting the ISO image).  I believe this is because of the path used to install the 32-bit Visual Studio program.  When you run the...

Fix: Can’t Change or Remove Visual Studio 2008 from DVD →

Posted on Monday, March 08 2010         1 Comment

Open Visual Studio Files As Administrator

Working with IIS as your web server, or working with Azure projects, are two examples of situations in which Visual Studio (2008+) needs to be running as Administrator (on Windows Vista or Windows 7).  If you don’t run it as such, you may be faced with a dialog like this one (for Azure): Now of...

Open Visual Studio Files As Administrator →

Posted on Wednesday, March 03 2010         1 Comment

Eliminate Repetition with Action<T>

Yesterday I was looking at some old code and refactoring it to clean it up (in this case I wasn’t the original author, but I’ve written code just like this).  The application in question was a simple process that had to run once per month, on demand, and so was coded up as an EXE application. ...

Eliminate Repetition with Action<T> →

Posted on Tuesday, March 02 2010         2 Comments