Archive for category Visual Studio

Cannot convert source type “MyType” to target type “MyType”

I recently installed ReSharper!. Today I was working on getting some old, previously ignored Unit Tests to pass for my current project. All of a sudden I noticed a nasty red squiggly underline on my actual = target.MethodUnderTest(input); call. Hovering over the offending code produced an error along these lines: Cannot convert source type […]

, ,

Leave a comment

Fixing SQL error 5170: Cannot create file ‘C:\[…]\APP_DATA\ASPNETDB_TMP.MDF’ because it already ASP.NET

The problem I recently had, for the first time, to create a brand-new ASP.NET web application that made use of the built-in Membership/Roles functionality, using the default of SQL Server Express, NOT a full installation of SQL Server. I had previously wrestled with issues when upgrading an older application using Membership/Roles to ASP.NET 4.0, and […]


MS Test data-driven tests/.CSV file error: Column ‘columnname’ does not belong to table

This is a maddening error, in the best Microsoft tradition of error-text-tells-you-nothing-about-the-real-cause. You are happily running your unit tests using MS Test, and you write a new unit test that requires a series of data to be thrown at the test. An example could be testing the validation code of a property setter. A perfect […]


Fixing Strong Name password Errors

Strong name key file password "incorrect"; "specified network password is not correct" This has happened to me twice in the last six months, and I keep forgetting the incredibly simple fix, so I’m posting it here, both for my own use, and in the hope that I can help someone else. Here’s the scenario: you […]

1 Comment

Web Service “content type” Error using Visual Studio 2008

This is obvious in retrospect, but I am blogging this in case anyone else comes across the same problem.   When writing my first VS 2008 Windows Forms app that used a Web Service, after adding the service reference and the code to talk to it, I repeatedly received the following error: The content type […]