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

前端 未结 22 2334
梦谈多话
梦谈多话 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:14

    This might not be relevant to your specific problem, but the error message you mentioned has many causes, one of them is using a return type for an [OperationContract] that is either abstract, interface, or not known to the WCF client code.

    Check the post (and solution) below

    https://stackoverflow.com/a/5310951/74138

    0 讨论(0)
  • 2020-12-23 00:14

    If you have a database(working in visual studio), make sure there are no foreign keys in the tables, I had foreign keys and it gave me this error and when I removed them it ran smoothly

    0 讨论(0)
  • 2020-12-23 00:15

    My problem was, that return type of my service was string. But I returned string of type xml:

    <reponse><state>1</state><message>Operation was successfull</message</response>
    

    so error was thrown.

    0 讨论(0)
  • 2020-12-23 00:17

    I've had this same error and the problem was serialization. I managed to find the real problem using Service Trace Viewer http://msdn.microsoft.com/en-us/library/ms732023.aspx and solved it easy. Maybe this will help someone.

    0 讨论(0)
提交回复
热议问题