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

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

    I had this problem because I configured my WCF Service to return a System.Data.DataTable.

    It worked fine in my test HTML page, but blew up when I put this in my Windows Form application.

    I had to go in and change the Service's Operational Contract signature from DataTable to DataSet and return the data accordingly.

    If you have this problem, you may want to add an additional Operational Contract to your Service so you do not have to worry about breaking code that rely on existing Services.

提交回复
热议问题