VS2010调试错误:找不到对象实例上的方法 [英] VS2010 Debug Error: Cannot find the method on the object instance
问题描述
在我目前的项目(VS2010中)中,基本上我已经使用了这个基于插件的应用程序,我为应用程序编写了一个插件,每当我尝试从我的插件中使用一个特定类(在外部DLL中)的一个实例时,我会收到一个错误。
我尝试观看实例,并收到消息在对象实例上找不到方法。
在监视窗口中。
我还发现插件中的一些扩展方法不起作用。
可能是什么错误?
我通过重新编译VS2010中的XpressData类库修复了此错误,并让Plugin应用程序引用新编译的库。 >
现在,所有内容都可以正常工作。
Basically, I've got this plugin-based application I've used all the time in VS2008 flawlessly.
In my current project (VS2010 by the way) I wrote a plugin for the application and whenever I try to use an instance of a particular class (in an external dll) from my plugin, I get an error.
I tried watching the instance and I got the message "Cannot find the method on the object instance."
in the watch window. This has never happened before!
I also found that some of the extension methods in the plugin does not work.
What could possibly be wrong?
I fixed this error by recompiling the XpressData class library in VS2010 and had the Plugin app reference the newly compiled library.
Everything now works perfectly.
这篇关于VS2010调试错误:找不到对象实例上的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!