WCF Web Service error: “Service endpoint binding not using HTTP protocol”?

后端 未结 8 850
无人及你
无人及你 2021-01-04 12:58

I\'ve got a simple WCF service that has worked fine while I\'ve been testing on my dev machine.

Now I\'ve moved the web service to a web server, and I\'m running the

8条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 13:29

    Don't define MyClass as Serializable. Mark it as [DataContract] and it's properties as [DataMember].

    If you can't, well... I think I've seen that question lying around here as well.

    EDIT

    While there is nothing inherently blocking [Serializable] will cause your serialization to perhaps process more than it can handle.

    EDIT 2

    marc_s's comment got it right

提交回复
热议问题