Author: tinuverma | Posted on: 11/29/2008 10:10:08 AM | Views : 467

Hello Guys
I have a WCF Service that seems to work perfect when I use it in visual studio 2008. I can hit F5 and get WCF Response (doing AJAX response) fine. I then wanted to see how it would/could be deployed. I mapped my IIS to the root directory of my solution and did all steps outlined in MSDN. I am able to browse to my .svc file and see the service..but when I try to consume it, I get a message that my namespace is not valid. To be specific I get error at following code (javascript):
var service = new TestWCFAJAXSite.CostService();
I get a message that  TestWCFAJAXSite is not defined.
The exact same solution works fine when I hit F5. There the "service" variable gets set fine and also I get my AJAX response.
Any suggestions?

...

Go to the complete details ...