service not defined when precompiling a web app with AJAX-enabled WCF Service
Posted
by Omar Mefire
on Stack Overflow
See other posts from Stack Overflow
or by Omar Mefire
Published on 2010-04-06T15:01:33Z
Indexed on
2010/04/06
15:03 UTC
Read the original article
Hit count: 351
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.
© Stack Overflow or respective owner