从VB脚本访问WCF服务时出错 [英] Error while accessing WCF Service from VB Script

查看:56
本文介绍了从VB脚本访问WCF服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请问有人可以提供解决此问题的方法吗?
实际上,我创建了一个wcf服务,创建了一个类库,并通过创建wcf客户端从类库中调用了wcf服务.现在,我将类库创建为com dll,并在Windows应用程序中添加了dll引用,并尝试从Windows应用程序通过com dll访问服务方法.一切正常.
但是,当我尝试从VB脚本通过com dll访问服务方法时,出现以下错误

错误:在ServiceModel客户端配置部分中找不到引用合同" ISomeService"的默认终结点元素.这可能是因为没有为您的应用程序找到配置文件,或者是因为在客户元素."

我们不能通过COM dll从VB脚本访问WCF服务吗?

Hi,

Can some one please provide solution for this problem?
Actually I created a wcf service, created a class library and invoked wcf service from class library by creating wcf client. Now I created the class library as com dll and added the dll reference in windows application and tried to access the service method through com dll from windows application. It is working fine.
But when I try the access the service method through com dll from VB Script I am getting the following error

Error: "Could not find default endpoint element that references contract ''ISomeService'' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."

Can we not access WCF Service from VB Script through COM dll? Is there anything which we need to do additional?

推荐答案



我认为您应该检查/更正web.config文件上的端点配置...

如果有帮助,请参阅此链接...
使用配置文件配置服务
Hi,

I think you should check/correct the endpoint configuration on the web.config file...

See this link if could help...
Configuring Services Using Configuration Files


这篇关于从VB脚本访问WCF服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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