WCF How to enable metadata?

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

    SOLUTION

    I didn't get the service working under IIS. First I manually create a virtual directory and pointed to the directiry where the svc is located. This didn't work. I don't know why.

    Then I went to Visual Studio and changed the server setting (Right mouse on the project, properties, tab Web, click Use local IIS Web Server and click Create Virtual Directory. When I did this, it worked under IIS with the code above.

提交回复
热议问题