- Make sure that .Net framework 3.0 or later is installed on the server. You can find it here.
- Register the service model to the IIS by doing the following:
- Open CMD.exe
- Navigate to: "C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation"
- Run "ServiceModelReg.exe -r"
- then, if you have x64 Windows, Navigate to: "C:\Windows\Microsoft.NET\Framework64\v3.0\Windows Communication Foundation"
- then run: "ServiceModelReg.exe -r"
- Open IIS. You can use Run->inetmgr.
- Click on the site that hosts the .svc file, and browse the Features view in the IIS. Then, open the Handler Mappings.
- In the right Panel (Actions), Choose Add Script Map.
- A window will appear to add new script map, and fill the following parameters:
- Click Add Script Map again if you have x64 Windows and use the following parameters:
- Then browse the Service using your internet browser : http://yourURL/...../YourService.svc/js, if you can see the scripts generated by Microsoft Ajax then you are done. Otherwise, you should allow anonymouse in your web site.
Request Path : *.svc
Executable : %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
Name: svc-ISAPI-2.0
Request Path : *.svc
Executable : %SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
Name: svc-ISAPI-2.0-64