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

后端 未结 8 848
无人及你
无人及你 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:34

    I just leave this here just in case someone need it. I came across with the same error. I was calling my service which has an argument of the type Dictionary<int, string> and one of the key/value pairs had the string value set to null.

    I changed the code to make sure there were no null values and it worked

    0 讨论(0)
  • 2021-01-04 13:34

    I have faced the same issue. It was the issue of port address of EndpointAddress. In Visual studio port address of your file (e.g. Service1.svc) and port address of your wcf project must be the same which you gives into EndpointAddress. Let me describe you this solution in detail.

    There are two steps to check the port addresses.

    1. In your WCF Project right click to your Service file (e.g. Service1.svc) -> than select View in browser now in your browser you have url like http://localhost:61122/Service1.svc so now note down your port address as a 61122

    2. Righ click your wcf project -> than select Properties -> go to the Web Tab -> Now in Servers section -> select Use Visual Studio Development Server -> select Specific Port and give the port address which we have earlier find from our Service1.svc service. That is (61122).

    Earlier I have different port address. After Specifying port address properly which I have given into EndpointAddress, my problem was solved.

    I hope this might be solved your issue.

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