vc 6 写的com,用本地C#写的程序可以顺利调用,但是通过webservice就不能调用,请问这是什么原因
vc 6 写的com,用本地C#写的程序可以顺利调用,但是通过webservice就不能调用,请教这是什么原因
vc 6 写的com,用本地C#写的程序可以顺利调用,但是通过webservice就不能调用,提示System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidCastException: Unable to cast COM object of type 'DOGMANAGERLib.DogManageClass ' to interface type 'DOGMANAGERLib.IDogManage '. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF} ' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
why???
------解决方案--------------------
接口注册方面的问题,可能是。
看看注册表吧。
------解决方案--------------------
看看DCOM的设置
------解决方案--------------------
接口类型要为Dual,单线程调用
------解决方案--------------------
GZ
------解决方案--------------------
重点在这句,
This operation failed because the QueryInterface call on the COM component for the interface with IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF}
查这个,
IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF}
vc 6 写的com,用本地C#写的程序可以顺利调用,但是通过webservice就不能调用,提示System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidCastException: Unable to cast COM object of type 'DOGMANAGERLib.DogManageClass ' to interface type 'DOGMANAGERLib.IDogManage '. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF} ' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
why???
------解决方案--------------------
接口注册方面的问题,可能是。
看看注册表吧。
------解决方案--------------------
看看DCOM的设置
------解决方案--------------------
接口类型要为Dual,单线程调用
------解决方案--------------------
GZ
------解决方案--------------------
重点在这句,
This operation failed because the QueryInterface call on the COM component for the interface with IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF}
查这个,
IID '{EE1DA689-6D90-4ECC-A988-E774D0D946AF}