MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

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.
Web: http://www.oakleafsd.com


Posted Dec 17 2006, 06:23 AM by KevinMcNeish

Comments

Michael Neel wrote Web Project...
on 12-17-2006 12:42

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.

KevinMcNeish wrote re: Create Instance Failed in Object Test Bench - Culprit: Enable SQL Server Debugging
on 12-19-2006 21:40

You will 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

Add a Comment

(required)  
(optional)
(required)  
Remember Me?


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems