service not defined when precompiling a web app with AJAX-enabled WCF Service
- by Omar Mefire
I created a web application in which one .aspx page calls an AJAX-enabled WCF service (created with Visual Studio 2008 Add New Item - AJAX-enabled WCF Service).
when I test the application in Visual Studio, it works and the page can call the service from Javascript but when I "publish" (code precompilation using Visual Studio) it to the local IIS Server, I get an error :
"service ThunServ is undefined" in my .html page.
I've been spending quite a time to solve this problem but to no avail.
Attarea.