Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts

Tags

News

  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: http://itunes.apple.com/us/book/book-1-diving-in-ios-app-development/id558788074?mt=11 Amazon: http://www.amazon.com/dp/B0097N8XBE Amazon: http://www.amazon.com/dp/B0099RQGMQ

Community

Email Notifications

Archives

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

Comments

Michael Neel said:

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.

# December 17, 2006 12:42 PM

KevinMcNeish said:

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

# December 19, 2006 9:40 PM
Leave a Comment

(required) 

(required) 

(optional)
 

(required) 

If you can't read this number refresh your screen
Enter the numbers above: