WCF How to enable metadata?

前端 未结 6 1149
[愿得一人]
[愿得一人] 2021-02-19 18:13

I am trying to get my svc file working under IIS. In my project, when I press F5 I got the svc working. So I know everything is okay, right? Except for IIS.

I am working

6条回答
  •  不知归路
    2021-02-19 18:26

    Ensure that your service namespace, and service class names correspond to the App.config file.

     
      
       
        
          
            
          
        
       
      
     
    
    
    namespace WcfCustomLibrary
    {
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
    public class Service1 : IService1
    {
    

提交回复
热议问题