WCF How to enable metadata?

前端 未结 6 1169
[愿得一人]
[愿得一人] 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:41

    First, remove the [DataContract] attribute in Client.

    Then, recompile and make sure that you have the WcfServiceLibrary.dll in the /bin directory for your virtual directory.

    Your config should use this endpoint for metadataexchange:

    
    

提交回复
热议问题