无法将“System .__ ComObject”类型的COM对象强制转换为接口类型“ISyncKnowledge2”。 [英] Unable to cast COM object of type 'System.__ComObject' to interface type 'ISyncKnowledge2'.

查看:85
本文介绍了无法将“System .__ ComObject”类型的COM对象强制转换为接口类型“ISyncKnowledge2”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我又回来了(很多人都很沮丧)。 我花了很多时间开发一个同步原型,如果成功,可以将其拉入我们的应用程序。 它很成功,我正在将MSF 2.0引入我们的应用程序。 
我刚刚进行了第一次同步,它似乎有效(有点难以说,因为它没有真正有任何数据同步)并且我收到以下错误:

I'm back again (much to everyone's dismay).  I spent a lot of time developing a sync prototype that, if successful, could be pulled into our application.  It was successful and I am in the process of pulling MSF 2.0 into our application.  I just did my first sync and it seems to have worked (kind of hard to say since it didn't really have any data to sync) and I got the following error:

Exception: Unable to cast COM object of type 'System.__ComObject' to interface type 'ISyncKnowledge2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{ED0ADDC0-3B4B-46A1-9A45-45661D2114C8}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

错误输出到我客户端的控制台;服务器端没有任何投诉。

The error was output to the console on my client side; there were no complaints on the server side.

就同步而言,这是一个表同步,其中同步更改跟踪框架已添加到现有表中。 因此,当我启动同步时,表的跟踪表在客户端数据库
和服务器数据库中都没有数据。 所以净效应是没有数据实际同步。

As far as the sync is concerned, this was a single table sync where the sync change tracking framework was added to an existing table.  Therefore, when I initiated the sync, the tracking table for table has no data in it in both the client database and the server database.  So the net effect is that no data is actually synced.

我的问题实际上相当容易。 首先,这个错误是我应该关注的吗? 其次,如果我应该关注这个错误,我需要做些什么来解决它?

My questions are actually fairly easy.  First, is this error something I should be concerned about?  Second, if I should be concerned about this error, what do I need to do to fix it?

谢谢。

 

推荐答案

嘿,

 

你能不能请发布异常调用堆栈以帮助识别可能的问题?你在编写自己的自定义提供商吗?

Could you please post the call stack for the exception to help identify the possible issues? and are you writing your own custom provider?

 

谢谢,


这篇关于无法将“System .__ ComObject”类型的COM对象强制转换为接口类型“ISyncKnowledge2”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆