Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.`

后端 未结 16 2162
清歌不尽
清歌不尽 2020-12-04 15:42

EDIT:

After I modified the web.config and I don\'t get error that\'s good.... then I add a new page (html) and write this small code to consume the serv

16条回答
  •  爱一瞬间的悲伤
    2020-12-04 16:16

    After Add this to your web.config file and configure according to your service name and contract name.

    
       
          
             
          
       
    
    
       
          
              binding="basicHttpBinding" 
              contract="MyService.IMyService"/>
          
       
    
    

    Please add this in your Service.svc

    using System.ServiceModel.Description;
    

    Hope it will helps you.

提交回复
热议问题