Create Instance Failed in Object Test Bench – Culprit: Enable SQL Server Debugging

I’ve had a number of developers ask me about encountering the “Create Instance Failed” error messsage when instantiating an object at design time in conjunction with the Object Test Bench.

I was able to consistently reproduce this error by turning on Enable SQL Server debugging. If you are experiencing this problem, you can try the following to see if it “fixes” the problem:

  1. Right-click your project and select Properties from the shortcut menu.
  2. Under Debug, uncheck Enable SQL Server debugging if it’s selected

You may also get this error if you are working in a Web project. If you disable the Web site from being compiled you can get past this error.

Best Regards,

Kevin McNeish
Microsoft .NET MVP
President, Oak Leaf Enterprises, Inc.

2 thoughts on “Create Instance Failed in Object Test Bench – Culprit: Enable SQL Server Debugging”

  1. I’m using VS2005 and my project is a Web Project. I don’t have “Properties” at the project level (only solution level), but instead have “Property Pages”. In Property Pages, under start options, is a Debuggers list with ASP.NET, Native code, and SQL Server checkboxes. Playing with these had no effect on the error.

    I’m not sure if these checkboxes do the same thing as the ones you are referring to. Also, I’m not yet running SP1 since I’m still looking into all of the changes it brings.

Leave a Reply

Your email address will not be published. Required fields are marked *