WCF service host cannot find any service metadata

后端 未结 10 557
余生分开走
余生分开走 2020-12-16 13:01

I\'m just learning wcf and currently got this far.

CS File:

using System;
using System.Collections.Generic;
using System.Linq;
using         


        
10条回答
  •  -上瘾入骨i
    2020-12-16 13:23

    I got this exact same issue and was vigorously going through my configuration and everything was inline with the metadata endpoints, etc. The issue? This line:

    
    

    The name value MUST, MUST have the name of the physical class that is implementing the contract. I forgot... once again and arbitrarily named it thinking it could be any string. So in the case above the implementing class must be named Service1. If the class name changes, make sure to change this value.

    This is like WCF 101 stuff and I still get burnt by it even though I have been doing WCF since CTP in Framework 3.0. Blah...

提交回复
热议问题