If you get this error when running a WCFServiceHost here is what you have to do:
1. Stop Debugging.
2. Go to the ServiceLibrary project -> right-click -> Properties -> uncheck the option Start WCF Service Host when debugging another project in the same solution.
3. Save.
4. Press F5 to Start Debugging again.
=> the error should not occur anymore.
This satisfies the debugger at runtime, but breaks the endpoint when trying to resolve the metadata address. Really not a good solution. Just change the baseAddress on the service side while debugging and problem will be solved. Then change back before deploying it.
ReplyDelete