开发者

Webservice call from .net class called from VB6

Im using VB6 in a project and I've some .Net dlls to handle document transfers. In one of these dlls im calling a webservice to retrieve my documents. This code works if only run as .net project, however running from vb6 it gives me the following error:

"Could not find endpoint element with name "DocServiceSoap' and contract 'documentWebService.DocServiceSoap' 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 name could be found in the client element"

I've googled around and tried everything, e.g. copying from app.config to web.config, specifying endpoint name开发者_StackOverflow中文版 when calling for service, still no luck :/

Any ideas?


I guess your app.config is called myDotNetDll.dll.config? That's wrong. The config file always need to be attached to the executable file.

So, to solve your issue, you need to copy it to your VB6 application, i.e., it should be called myVb6Application.exe.config and located in the same directory as your myVb6Application.exe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜