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
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
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.
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
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.