User623617616 posted
Hello,
I've been developing a WCF services for a couple of weeks now and everything seemed to work perfectly. All development and testing was done on the WCF web service running on a normal HTTP web site.
Today I figured I'll try and run all the tests again, but this time on the SSL (HTTPS) enabled web site, because in production it's supposed to run SSL. I created a self-signed certificate, added a new https binding with the certificate to the main web site
and tested if the existing HTTP web site still worked. Which it did. I then opened my browser to see if I could get the WSDL from the web service using the HTTPS address and that too, worked. I then started the tests and they all failed. I got HTTP 404 errors.
It looks like an HTTP GET request works, but anything other than that failed (all HTTP 404).
I've created a request in Fiddler for easy testing and switching from POST to GET is all it takes to make the request work.
I turned on Failed Request Logging and found the request fails here:
ModuleName="ServiceModel-4.0", Notification="AUTHENTICATE_REQUEST", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The operation completed successfully. (0x0)", ConfigExceptionInfo=""
It's also interesting to note that IIS doesn't send any page back. Not even the default 404 page. According to Fiddler all it returns is this:
HTTP/1.1 404 Not Found
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Thu, 12 May 2011 16:19:28 GMT
Content-Length: 0
Does anyone have any idea?