Weird error when add a service reference into ASP.net web site

I found a strange error when I try to add a service reference (WCF service). As a WCF professional I had no idea what the reason is. Completely no idea for it. So I researched it.

 Weird_Error01

Yay! I found that many people saw same error when they try to that. One Microsoft Community Contributor said that it seems like a bug.

The solution is simple.

Comment the WCF endpoint behavior that causes an error.

Weird_Error03

Add Service.

AddServices

Uncomment the WCF endpoint behavior that causes an error.

Weird_Error02

That’s it.

Link : http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/9beac730-8744-45d4-94db-391550d8cd8f

Leave a comment