<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Networking and Web Services</title><link>http://forums.asp.net/1009.aspx</link><description>Discuss your issues with the client and server interaction in AJAX using web services and other transports used by AJAX</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3301210.aspx</link><pubDate>Sat, 18 Jul 2009 08:53:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3301210</guid><dc:creator>Maulik Patel</dc:creator><author>Maulik Patel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3301210.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3301210</wfw:commentRss><description>&lt;p&gt;Hi Alex,&lt;/p&gt;&lt;p&gt;Thanks for your asnswer. Will try your suggestion. And will let you know if any problem.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3298260.aspx</link><pubDate>Thu, 16 Jul 2009 20:40:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3298260</guid><dc:creator>aaminian</dc:creator><author>aaminian</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3298260.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3298260</wfw:commentRss><description>&lt;p&gt;Hi Patel,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Sorry for the late response.&amp;nbsp; I usually get an email when someone updates a post but I didn&amp;#39;t in this case!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Anyhow, here is what I meant:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; Right click on your ASP.NET application and select &amp;quot;Property Pages&amp;quot; at the bottom of the displayed context menu.&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; On the Property Pages form, select the &amp;quot;Startup Options&amp;quot; on the tree pane.&lt;/p&gt;&lt;p&gt;3.&amp;nbsp; Select the &amp;quot;Start URL&amp;quot; radio button on the right (form) pane and put your url in the now-enabled text box; e.g., http://localhost/AjaxWebSite/Default.aspx&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I hope that helps,&lt;/p&gt;&lt;p&gt;Alex&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3270384.aspx</link><pubDate>Thu, 02 Jul 2009 05:32:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3270384</guid><dc:creator>Maulik Patel</dc:creator><author>Maulik Patel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3270384.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3270384</wfw:commentRss><description>&lt;p&gt;Hello aaminian,&lt;/p&gt;&lt;p&gt;I am facing same problem. I tried to do what you explained above but still facing same problem. Your first point is pretty clear. I set virtual directory in IIS and also checked .svc is mapped to aspnet_isapi.dll.&lt;/p&gt;&lt;p&gt;Second point is little confusing for me. Can you explain it in detail ? I also started new thread for my problem if you wish to post your answer to my thread. &lt;/p&gt;&lt;p&gt;http://forums.asp.net/t/1442084.aspx&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3269652.aspx</link><pubDate>Wed, 01 Jul 2009 18:58:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269652</guid><dc:creator>aaminian</dc:creator><author>aaminian</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269652.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3269652</wfw:commentRss><description>&lt;p&gt;Alright, I&amp;#39;ve found a workaround:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; Create a virtual directory in IIS pointing to the (Ajax-Enabled WCF Service) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASP.NET directory of choice (also, make sure .svc extension is mapped to &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspnet_isapi.dll).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; Change the startup page for your web app by setting the Start URL (Property Pages |&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start Options) to the one hosted by IIS. So, for instance, if your the page that makes the AJAX WCF &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call is Default.aspx your Start URL will be http://localhost/AjaxWebSite/Default.aspx.&amp;nbsp; That way, once you &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; make any changes to your app, it&amp;#39;ll picked up by IIS.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I believe that the self-hosting functionality in Visual Studio is not bullet-proof when it comes to &lt;/p&gt;&lt;p&gt;creating/hosting AJAX WCF services on the fly, and that&amp;#39;s obviously not the case with IIS.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This workaround seems to be working for me consistently, at least for now. Tomorrow may be a different story &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif" alt="Smile" title="Smile" border="0" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3263313.aspx</link><pubDate>Mon, 29 Jun 2009 06:15:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263313</guid><dc:creator>Maulik Patel</dc:creator><author>Maulik Patel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263313.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3263313</wfw:commentRss><description>&lt;p&gt;Hi rdagger,&lt;/p&gt;&lt;p&gt;I am also facing same problem. Any update from your side ?&lt;/p&gt;&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3263125.aspx</link><pubDate>Mon, 29 Jun 2009 03:23:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263125</guid><dc:creator>readgo@vip.qq.com</dc:creator><author>readgo@vip.qq.com</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263125.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3263125</wfw:commentRss><description>&lt;p&gt;For example,if you&amp;nbsp;write javascript code in two or more .js files(not in the html file).&lt;br /&gt;wcf functions are call in these .js files.Then you can include both the scripts and &lt;br /&gt;wcf services like below:&lt;br /&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;Scripts&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&amp;quot;../JavaScript/public.js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&amp;quot;../JavaScript/Js_Monitor/monitor_alarm.js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&amp;quot;../WCF/wcfMonitor.svc/js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/Scripts&amp;gt;&lt;br /&gt;&amp;lt;/asp:ScriptManager&amp;gt; &lt;/p&gt;
&lt;p&gt;If not necessary don&amp;#39;t incude the scripts file in these way:&lt;br /&gt;&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Wcf Service Test&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;../JavaScript/public.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;../JavaScript/Js_Monitor/monitor_alarm.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3262946.aspx</link><pubDate>Sun, 28 Jun 2009 22:35:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3262946</guid><dc:creator>gblume</dc:creator><author>gblume</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3262946.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3262946</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve had this intermittent problem from the start while developing on my home XP/Visual Web Developer 2008, my work Windows Server 2003/Visual Studio, and now in production, again Windows Server 2003/IIS6&amp;nbsp;-&amp;nbsp;all running framework V3.5. &lt;/p&gt;
&lt;p&gt;Thanks for your post. What do you mean by the statement, &amp;quot;Your&amp;#39;d better include the other js files by ScriptManager.&amp;quot;? Would you elaborate?&lt;/p&gt;
&lt;p&gt;Does anyone know where Microsoft stands on this? Is Microsoft not supporting WCF?&lt;/p&gt;
&lt;p&gt;Glenn Michael&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3259016.aspx</link><pubDate>Fri, 26 Jun 2009 01:46:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3259016</guid><dc:creator>readgo@vip.qq.com</dc:creator><author>readgo@vip.qq.com</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3259016.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3259016</wfw:commentRss><description>&lt;p&gt;There is a bug when you include WCF service in this way: &lt;br /&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;services&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:servicereference Path=&amp;quot;CostService.svc&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/services&amp;gt;&lt;br /&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/p&gt;
&lt;p&gt;especially then WCF service is used in diffrent pages.&lt;br /&gt;Because the JavaScripts may be load faster then WCF services.&lt;/p&gt;
&lt;p&gt;Try to include your WCF service like this:&lt;br /&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;Scripts&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&amp;quot;CostService.svc/js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt;Or download the js file from &amp;quot;&lt;a href="http://../CostService.svc/js"&gt;http://../CostService.svc/js&lt;/a&gt;&amp;quot; and then include like below:&lt;br /&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;Scripts&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&amp;quot;CostService.js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt;Your&amp;#39;d better include the other js files by ScriptManager.&lt;/p&gt;
&lt;p&gt;By the way, &amp;quot;free memory is too low&amp;quot; may cause this error too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3258845.aspx</link><pubDate>Thu, 25 Jun 2009 21:59:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3258845</guid><dc:creator>aaminian</dc:creator><author>aaminian</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3258845.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3258845</wfw:commentRss><description>&lt;p&gt;I am having the same problem.&amp;nbsp; I have an Ajax-enabled WCF service and I get the &amp;quot;...&amp;#39;SomeService&amp;#39; undefined error message...&amp;quot;&lt;/p&gt;&lt;p&gt;when I make a WCF service call from the JavaScript.&amp;nbsp; At times the problem magically goes away but not because of any changes &lt;/p&gt;&lt;p&gt;I&amp;#39;ve made!&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have followed the development/configuration process per the MSDN article posted at &lt;a href="http://msdn.microsoft.com/en-us/library/bb924552.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb924552.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;and yes the svc extension is associated with aspnet_isapi.dll, and the ScriptManager element has a reference to the svc file as well.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This is really frustrating and I am pretty sure it is a bug (maybe in the activation of the activation of the WCF service.&amp;nbsp; What I am&lt;/p&gt;&lt;p&gt;more afraid of is whether this error will show up in a production environment.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3129430.aspx</link><pubDate>Thu, 30 Apr 2009 02:20:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3129430</guid><dc:creator>readgo@vip.qq.com</dc:creator><author>readgo@vip.qq.com</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3129430.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3129430</wfw:commentRss><description>&lt;p&gt;It may be the free memory is too low,kill some useless processes to get more.The default minimum free memory percentage is 5.You can change it in the config file like below:&lt;/p&gt;
&lt;p&gt;&amp;lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&amp;quot;true&amp;quot; minFreeMemoryPercentageToActivateService=&amp;quot;1&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;If you set that percentage up to 99,than &amp;#39;Undefined&amp;#39; error will be reported again again and again.And if it happen,you can open the wcf(.svc) file in IIS.Than will show you the error details.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;The &amp;#39;serviceHostingEnvironment&amp;#39; section format:&lt;/p&gt;&lt;pre class="libCScode" id="ctl00_mainContentContainer_ctl03other" style="WORD-BREAK:break-all;WORD-WRAP:break-word;"&gt;&amp;lt;serviceHostingEnvironment&amp;gt;
         aspNetCompatibilityEnabled=&amp;quot;Boolean&amp;quot;
       minFreeMemoryPercentageToActivateService=&amp;quot;Integer&amp;quot;
     &amp;lt;baseAddressPrefixFilters&amp;gt;
                &amp;lt;add prefix=&amp;quot;string&amp;quot;/&amp;gt;
          &amp;lt;/baseAddressPrefixFilters&amp;gt;
     &amp;lt;transportConfigurationTypes&amp;gt;
        &amp;lt;add name=&amp;quot;String&amp;quot; 
             transportConfigurationType=&amp;quot;String&amp;quot; /&amp;gt;
     &amp;lt;/transportConfigurationTypes&amp;gt;
&amp;lt;/serviceHostingEnvironment&amp;gt;&lt;/pre&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3005662.aspx</link><pubDate>Fri, 13 Mar 2009 19:24:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3005662</guid><dc:creator>rdagger</dc:creator><author>rdagger</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3005662.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3005662</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;trans642:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;this is the solution &lt;/p&gt;
&lt;p&gt;1) Make sure you install .NET 2.0 and 3.0&amp;nbsp; and 3.5 properly.&lt;/p&gt;
&lt;p&gt;2) Open IIS manager&lt;/p&gt;
&lt;p&gt;3) Open your web directory properties windows.&lt;/p&gt;
&lt;p&gt;4) Make sure ASP.NET version 2 is chosen in ASP.NET tab.&lt;/p&gt;
&lt;p&gt;5) Make sure your script mapping for .svc is using aspnet_isapi.dll from .net 2.0 folder (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll), you could even remove and add again for .svc extension, for all verbs.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;It may be the solution to your problem, but it doesn&amp;#39;t address my issue.&amp;nbsp; My code works fine in development and production.&amp;nbsp; Occasionally it will stop working after I make edits to the site.&amp;nbsp; I have not found why, but I have found a workaround.&amp;nbsp; I just open the service .cs file and click save.&amp;nbsp; This isn&amp;#39;t a solution, but I no longer have to recreate the file.&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3005315.aspx</link><pubDate>Fri, 13 Mar 2009 16:00:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3005315</guid><dc:creator>trans642</dc:creator><author>trans642</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3005315.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3005315</wfw:commentRss><description>&lt;p&gt;this is the solution &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1) Make sure you install .NET 2.0 and 3.0&amp;nbsp; and 3.5 properly.&lt;/p&gt;
&lt;p&gt;2) Open IIS manager&lt;/p&gt;
&lt;p&gt;3) Open your web directory properties windows.&lt;/p&gt;
&lt;p&gt;4) Make sure ASP.NET version 2 is chosen in ASP.NET tab.&lt;/p&gt;
&lt;p&gt;5) Make sure your script mapping for .svc is using aspnet_isapi.dll from .net 2.0 folder (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll), you could even remove and add again for .svc extension, for all verbs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/3005241.aspx</link><pubDate>Fri, 13 Mar 2009 15:27:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3005241</guid><dc:creator>trans642</dc:creator><author>trans642</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3005241.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3005241</wfw:commentRss><description>&lt;p&gt;How ? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am having similar issues the namespace defined in the service is not recognizable in clientside :&lt;/p&gt;
&lt;p&gt;it keeps on giving me &amp;quot;MySerivce&amp;quot; is undefined &lt;/p&gt;
&lt;p&gt;where MyService is&amp;nbsp; &lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;ServiceContract&lt;/font&gt;&lt;font size="2"&gt;(Namespace = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;font color="#000000"&gt;MyService&lt;/font&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)]&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;I have never able to make this ting work in real developement environment; any dummy project is working fine&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/2969337.aspx</link><pubDate>Thu, 26 Feb 2009 19:22:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2969337</guid><dc:creator>rdagger</dc:creator><author>rdagger</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2969337.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=2969337</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Vince Xu - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ajax JavaScript will generate the client agent class for the current web service. After you edit the WCF reference, you need to regenerate these javacript client agent class. Otherwise, the client class will not be updated.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;I&amp;#39;m not sure I understand.&amp;nbsp; I haven&amp;#39;t been editing the WCF reference or the WCF service.&amp;nbsp; This morning I made a change to an unrelated page that has no Ajax.&amp;nbsp; Nonetheless, I checked the WCF service &amp;nbsp;and it had stopped working and I had to recreate it.&lt;/p&gt;</description></item><item><title>Re: Ajax enabled WCF Service stops working with Undefined error</title><link>http://forums.asp.net/thread/2967078.aspx</link><pubDate>Thu, 26 Feb 2009 03:13:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2967078</guid><dc:creator>Vince Xu - MSFT</dc:creator><author>Vince Xu - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2967078.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=2967078</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ajax JavaScript will generate the client agent class for the current web service. After you edit the WCF reference, you need to regenerate these javacript client agent class. Otherwise, the client class will not be updated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>