Yesterday I was trying to run an ASP .NET website that leveraged multiple WCF Ajax-enabled services on a Windows Server 2008 box under an IIS7 application but kept running into the following JavaScript error: "Namespace.Service is undefined".
One of my co-workers had run into this recently and told me the problem was WCF Activation is turned off by default in Windows Server 2008. To turn it on:
-
Go to Server Manager
-
Find the Features Summary
-
Click "Add Features"
-
Expand the ".NET Framework 3.0 Features" node
-
Select "WCF Activation"
-
Hit "Install"
Problem solved.