I've inherited a website that I'm migrating to a new server (Windows Server 2003 to Windows Server 2012). Everything seems to work after the migration except one of my ajax calls. Below is the code that fails:
var encodedInput = $.toJSON(input);
contentType: "application/json; charset=utf-8",
The sim.svc code is:
<%@ ServiceHost Language="C#" Debug="true" Service="W.Services.Sim" Factory="W.Services.AppServiceHostFactory" %>
W.Services.SIm is a dll.
This ajax call works if I'm on the production server and use http://localhost:80/page.aspx
. However, if I try and access the website (on the production or any where else) using www.domainName/page.aspx
the ajax call fails.
The only thing that indicates that the call has failed is a custom message that says: 'loading failed'. When I use firebug, it says that sim.svc/renenue is not found (404)