This topic describes the most common problems you can encounter working with Object Test Bench and a short description of how to solve the problem.
Object Test Bench does not appear in the IDE
Cause: This is most likely the result of the mode you are currently running Visual Studio in.
Solution: Make sure you are running Visual Studio in Design mode, rather than Debug mode.
Menus do not display the functions I expect to see.
Cause:
Solution: Check that you are calling functions that Object Test Bench supports.
Object Test Bench is out of sync with my code
Cause: You have changed your code, and now Object Test Bench displays a version no longer in sync with your code.
Solution: Rebuild to re-sync Object Test Bench. You will not be able to perform an object operation in Object Test Bench until you rebuild to refresh.
Note |
|---|
| Rebuilding the application can cause the Object Test Bench to reset. |
The object I added did not appear in Object Test Bench
Cause: This most likely occurs because the object you tried to add is an instance of a generic class. This scenario is not supported in Object Test Bench.
Solution: Check that the object you want to add is not generic.
Cannot see the "create Instance" menu item when I right click on a class in Class View
Cause: The project which contains the class on which Object Test Bench is being invoked might not be set as StartUp Project.
Solution: In Whidbey, a project needs to be set as startup project before we can use OTB with it. In the Class view, right click on the project (which contains class you want to use with OTB) and click on Set as StartUp Project.
Other Resources
Object Test Bench