Reputation: 149
I have a DLL that works with a webServices.
I developed some projects with .NET that consume this DLL and work without problems.
I also have some projects developed in VB6 and I need to consume this DLL, but when I call the method where the webservice is running, it shows me the following message.
Could not find default endpoint element that references contract 'MYDLLNAME' in the service model client configuaration section. This might be because no configuaration file was found for your application or because no end point element matching this contract could be found in the client element
I solved this problem at the beginning with the projects of .NET, I added a part of the app.config of the project of the DLL in the app.config of the project main and it worked correctly.
My question is, how do I resolve it in VB6?
Upvotes: 1
Views: 271
Reputation: 464
Imagine you have:
You need to copy a part of the project1 app.config to project3.exe.config.
What you did before was to copy the relevant section to project2 app.config, that when compiled is renamed to project2.exe.config.
Please note, that while you are using the VB6 IDE, the process that requires an app.config is the VB6.exe, so I would also copy that app.config to the VB6 folder and renamed it as VB6.exe.config. See this answer
Upvotes: 3