Could not find default endpoint element that references contract :connect to WCF endpoint through Powershell cmdlet

Question:

I have created a class library that should connect to a WCF endpoint project I am hosting.
The client project has commandlets defined that should interact with the service.

However, I keep getting the following error:

Do you know what the problem might be?

EDIT
What I have is a single Class Library defining cmdlets. I use an .psd1 file to Import-Module which uses the dll files produced.

EDIT2
Once again, I don’t have a project referencing my library. It is the powershell that calls the commandlets defined and these cmdlets should connect to the WCF endpoint

Thanks

Answer:

have got this to work: here is a clean solution:

Source:

Could not find default endpoint element that references contract :connect to WCF endpoint through Powershell cmdlet by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply