This could be due to the service endpoint binding not using the HTTP protocol

前端 未结 22 2398
梦谈多话
梦谈多话 2020-12-22 23:10

I have a WCF Service running fine on my local machine. I put it on the servers, and I am receiving the following error:

An error occurred while receiv

22条回答
  •  悲&欢浪女
    2020-12-23 00:08

    Solution with DataContract, Flags for Enums looks a bit ugly. In my case problem been solved by adding something like "NotSet = 0" into enum:

    public enum Fruits
    {
      UNKNOWN = 0,
      APPLE = 1,
      BALL = 2,
      ORANGE = 3 
    }
    

提交回复
热议问题