MSSOAP30 对象错误:0x80004002:接口不存在 (VB)
我完全坚持使用 MS SOAP 3.0,目前我正在 Office 2003 中的 VBA Excel 中运行它。我已经使用 MS SOAP Toolkit 3 创建了我正在使用的代理类。如果我不使用它,我就不会收到错误,但是我必须手动写出整个代理类,而且它很大。
当我的程序第一次运行时,我收到“类未注册”。如果我再次运行它,我会收到“接口不受支持”。错误消息是:
运行时错误:'-2147467262'
SoapMapper:元素的 SoapMapper 无法创建 callContextIn HRESULT=0x80004002:没有这样的接口 支持。 -WSDLOperation:初始化 SoapMapper 以执行 getSNFormat 操作 HRESULT=0x80004002:没有这样的接口 支持。
该错误发生在以下情况:
设置 sc_PartService = 新 SoapClient30
帮助将不胜感激。
谢谢
I'm well and truly stuck with MS SOAP 3.0, which I'm currently running from VBA Excel in Office 2003. I have used MS SOAP Toolkit 3 to create a proxy class which I am using. If I don't use it, I don't get the error, but then I'd have to write out the entire proxy class by hand and it's massive.
When my program is first run, I get "Class not registered". If I run it again I get "Interface not supported". The error messge is:
run-time error: '-2147467262'
SoapMapper: The SoapMapper for element
callContextIn could not be created
HRESULT=0x80004002: No such interface
supported.
-WSDLOperation:Initialisation of a SoapMapper for operation getSNFormat
HRESULT=0x80004002: No such interfce
supported.
The error occurs when:
Set sc_PartService = New SoapClient30
Help would be greatly appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
刚才我删除了“Set”,当然出错了,把它放回去就可以正常运行了。一次。不再是这样,我一直无法重新创建这个。以前从来没有遇到过类似的事情!
Just now I deleted "Set", got an error of course, put it back and it ran properly. Once. Not again, and I've been unable to recreate this. Never encountered anything like that before!
您检查过 COM 对象是否存在/是否已注册吗?
HAve you checked if the COM object exists / is registered?