WCF 4.5 Web service hosted on IIS 7.5 on Windows Server 2012 gives an exception - wcf

I am getting a ProtocolException when using a WCF Service targeting .NET framework 4.5 on IIS7.5 on a Windows Server 2012 box.
The remote server returned an unexpected response: (405) Method Not Allowed.
Any pointers to the problem would help as it works okay in Development env.
I can browse to the service's svc file in the browser but when invoked from a website on the same box, it gives this error.

Related

webservice stopped working after moved from Windows Sever 2012R2 to 2019

I have one old wcf developed with .Net Framework 4.0 and was hosted on Windows Sever 2012 R2.
It was working fine but after server upgrade to Windows Sever 2019, it is throwing following error:
An error occurred while making the HTTP request to
https://prod1-a1:8086/MainAuthService/Authentication.svc. This could be due to the fact that the
server certificate is not configured properly with HTTP.SYS in the
HTTPS case. This could also be caused by a mismatch of the security
binding between the client and the server.
IIS version is 10.
It is first time I am working with web service and I don't have clue. I don't have access to code but any help would be appreciable.
Finally I was able to resolve it by using full domain name with URL which has https.
https://prod1-a1:8086.pisc.com/MainAuthService/Authentication.svc.

Error Hosting WCF 3.5 Under IIS Express

I'm trying to run WCF Service based on 3.5 Framewor on Windows 8 with Visual Studio 2012 and IIS Express.
Service hosting fails with error "HTTP Error 404.17".
I'm trying with default Visual Studio WCF template setting framework 3.5.
Works fine if I select frameworks 4.0 or 4.5.
Is there a way to make 3.5 services works fine with IIS Express?
Http activation is enabled in Windows Features.
Tried install, re-install, remove and install Service Model via:
Framework64\v3.0\Windows Communication Foundation> .\ServiceModelReg.exe -i
Still not working.
Regards,
Dmitry

WCF Data Services (OData) deployment on IIS 5.1

I have developed a WCF Data service using VS 2010, I am able to run it and get the data as feed by running using VS 2010.
I published the service on IIS 5.1 but I m getting http: 404 error.
Can anyone help to deploy the service on IIS 5.1 step by step?
I found a bit on it here.

Debugging WCF service hosted in IIS 6.0 using Visual Studio 2005

I've created a WCF service selecting 'WCF Service' in installed web site templates in VS2005. I've added a ASP.Net client for the service in the SAME solution. I published the WCF service in IIS 6.0 and configured it to run in .Net Framework 2.0.
I did an IISAPP in command prompt and identified the PID of the w3wp.exe process of my service application in IIS. I attached the debugger in VS to that process and started a new instance of the asp.net client project.
But i'm not able to step in to the service and the breakpoint is not enabled at all showing 'No symbols have been loaded'.
Any insights on this? Can i debug a WCF service hosted in IIS 6.0 using VS 2005 where the service and client resides under SAME solution?
Thank you
NLV

Issue while hosting WCF service on IIS 7

I am unable to browser the service which is hosted on IIS 7 Windows Server 2008.
When I hit the url http://myservice/service1.svc it throws an error.
Check to make sure you have framework 3.5 sp1 installed, after this go to Programs, add remove windows features, then make sure you have:
Microsoft .net framework 3.5.1
under that make sure both options are checked:
WCF HTTP activation, and WCF Non HTTP Activation....
If this still doesn't work update post a comment here....