I\'ve written a WCF service with .NET 4.0, which is hosted on my Windows 7 x64
Ultimate system with IIS 7.5.
One of the service methods has an \'object\' as arg
If you're running into this issue despite trying all of the solutions in this thread, and you're connecting to the service via SSL (e.g. https), this might help:
http://forums.newatlanta.com/messages.cfm?threadid=554611A2-E03F-43DB-92F996F4B6222BC0top
To summarize (in case the link dies in the future), if your requests are large enough the certificate negotiation between the client and the service will fail randomly. To keep this from happening, you'll need to enable a certain setting on your SSL bindings. From your IIS server, here are the steps you'll need to take:
netsh http show sslcert
. This will give you your current configuration. You'll want to save this somehow so you can reference it again later.netsh http delete sslcert :
where :
is the IP:port shown in the configuration you saved earlier.netsh http add sslcert
here (MSDN) but in most cases your command will look like this:netsh http add sslcert ipport=
If you have multiple SSL bindings, you'll repeat the process for each of them. Hopefully this helps save someone else the hours and hours of headache this issue caused me.
EDIT: In my experience, you can't actually run the netsh http add sslcert
command from the command line directly. You'll need to enter the netsh prompt first by typing netsh
and then issue your command like http add sslcert ipport=...
in order for it to work.