与IRTDUpdateEvent .NET / COM异常 [英] .NET/COM Exception with IRTDUpdateEvent

查看:440
本文介绍了与IRTDUpdateEvent .NET / COM异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们建立以来一直在广泛使用了好几年的RTD服务器组件。 (它是建立与VS 2008,.NET 3.5目标运行时。)今天,用户报告得到以下异常:

We built an RTD Server assembly which has been in wide use for several years. (It was built with VS 2008, .NET 3.5 Target Runtime.) Today a user reported getting the following Exception:

System.InvalidCastException:无法转换类型的COM对象   系统.__ ComObject'接口类型   Microsoft.Office.Interop.Excel.IRTDUpdateEvent。此操作   失败,因为COM组件调用QueryInterface   IID为{A43788C1-D91B-11D3-8F39-00C04F3651B8}接口失败,原因是   以下错误:不支持此接口(从Exception   HRESULT:0x80004002(E_NOINTERFACE))。在   Microsoft.Office.Interop.Excel.IRTDUpdateEvent.UpdateNotify()在   EZomsRTDServer.RTDServer.NotifyExcel()

System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.IRTDUpdateEvent'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A43788C1-D91B-11D3-8F39-00C04F3651B8}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). at Microsoft.Office.Interop.Excel.IRTDUpdateEvent.UpdateNotify() at EZomsRTDServer.RTDServer.NotifyExcel()

他跑细昨天。这个问题似乎已经引起了他安装新的应用程序,它促使他安装.NET 4的更新。 (他已经有.NET 4的安装,所以不知道该更新了。)用户通过回滚到昨天的还原点(仍然是运行.NET 4)解决了这个问题。但是,我们需要了解在安装期间导致COM兼容性问题,什么可能发生。 (他没有接触Excel或我们RTD的应用程序)。

He was running fine yesterday. The problem seems to have been caused by him installing a new application which prompted him to install an .NET 4 update. (He already had .NET 4 installed, so not sure what this update was.) The user resolved the problem by rolling back to yesterday's restore point (which still was running .NET 4). But we need to understand what could have happened during an install to cause the COM compatibility problem. (He didn't touch Excel or our RTD application).

难道是可能的,将安装一惯的IRTDUpdateEvent的GUID其他一些COM类?

Could it be possible that one of the installs used the Guid of the IRTDUpdateEvent for some other COM class?

推荐答案

这是在另一篇文章回答: <一href="http://stackoverflow.com/questions/10200154/net-rtd-com-excel-interop-errors-on-one-users-machine">.NET在一个用户的计算机RTD / COM的Excel互操作失误?

This was answered in another post: .NET RTD/COM Excel Interop errors on one user's machine?

这个问题似乎已经是如何一台机器使用Excel 2003年创建这个COM对象,如何与一台机器使用Excel 2007年创建它之间是差异。

The problem seems to have been differences between how a machine with Excel 2003 was creating this COM object, versus how a machine with Excel 2007 was creating it.

这篇关于与IRTDUpdateEvent .NET / COM异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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