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:
- Right-click your project and select Properties from the shortcut menu.
- 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.
Microsoft .NET MVP
President, Oak Leaf Enterprises, Inc.