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

前端 未结 22 2140
梦谈多话
梦谈多话 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-22 23:53

    This error can be because of contract mismatch. Consider the three layered application below...

    UI Layer
    |
    Process Layer
    |
    Data Access Layer
    -> Contract Between Process and UI layer has the same enum with missing (Onhold = 3). Enum: Start = 1, Stop = 2. -> Contract Between Data Access And Process layer has enum Enum: Start = 1,Stop = 2,Onhold = 3.

    In this case we will get the same error in process layer response.

    The same error comes in other contract mismatch in multilayered application.

提交回复
热议问题