WCF Metadata publishing for this service is currently disabled + Content Type error

后端 未结 6 915
再見小時候
再見小時候 2020-12-08 07:32

That Metadata error is what I get when I browse to the service in a browser. I am not consuming it with a client

and Yes.. I added

6条回答
  •  死守一世寂寞
    2020-12-08 08:00

    Your code and config seems fine - except for one little point:

    In your tag, you have defined a name that doesn't seem to correspond to the class that actually implements your service:

    
                   ************************** 
    

    but your class is:

    namespace DestructionServices
    {
        .....
        public class TacticalNukeSVC : INukeInterface
        {
    

    Those names need to match! The name= attribute on the tag in config must be exactly what your service class is called - fully qualified, including namespace - so in your case here, it should be:

    
    

提交回复
热议问题