Previously a MVC 4 application was hosted in windows 2003 server asp.net 4.0.30319
and the WCF Service was hosted there as well.
Anonymous access was checked along with IUSR_ account
and the checkbox for Integrated Windows Authentication.
Now Upon moving the Website and Service both to Windows 2012 Server ( IIS 8 ) Hitting the Webservice works fine:
http://exampleservicetest.test.com/Service.svc?wsdl
Problem: Pulling up the website which calls the service returns a 405 error put below. Tampering with settings per google is not fixing the issue....
Error.
An error occurred while processing your request.
ProtocolException
System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (405) Method Not Allowed. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---