<?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: AutocompleteExtender not displaying results on prod server</title><link>http://forums.asp.net/thread/3276294.aspx</link><pubDate>Mon, 06 Jul 2009 08:25:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3276294</guid><dc:creator>Vince Xu - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3276294.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3276294</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;Did you get any client error ? If&amp;nbsp; that&amp;#39;s the problem on PageMethod, please ensure your pagemethod is in aspx or code behind. You can also use web development helper to debeg it.&lt;/p&gt;</description></item><item><title>AutocompleteExtender not displaying results on prod server</title><link>http://forums.asp.net/thread/3273750.aspx</link><pubDate>Fri, 03 Jul 2009 15:15:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273750</guid><dc:creator>dmohr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273750.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=3273750</wfw:commentRss><description>&lt;p&gt;I have an autocompleteExtender that I wrote on my dev server and wanted to promote it to my prod server but it won&amp;#39;t display the results of my query.&amp;nbsp; I am using framework 3.5 and vs2008 as my ide on both boxes.&amp;nbsp; I can see in debug that the webservice retrieves the data, 100 zipcodes, from the sql2008 database.&amp;nbsp; The webservice gets the results and places them in the arraylist to send back to the calling page but the results never appear.&amp;nbsp; I simply copied the project library from one server to the other and then changed the database references.&amp;nbsp; I am assuming that I have some version issue of os, ajaxcontroltoolkit, framework or something else.&amp;nbsp; On my dev box this works fine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My autocompleteextender looks like this:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;&amp;lt;ajct:AutoCompleteExtender ID=&amp;quot;aceZipCode&amp;quot; runat=&amp;quot;server&amp;quot; TargetControlID=&amp;quot;txtZipCode&amp;quot; EnableCaching=&amp;quot;true&amp;quot; CompletionSetCount=&amp;quot;100&amp;quot; 
							CompletionListCssClass=&amp;quot;autocomplete_completionListElement&amp;quot; MinimumPrefixLength=&amp;quot;3&amp;quot; 
							CompletionListItemCssClass=&amp;quot;autocomplete_listItem&amp;quot; CompletionInterval=&amp;quot;300&amp;quot; 
							CompletionListHighlightedItemCssClass=&amp;quot;autocomplete_highlightedListItem&amp;quot;
							ServicePath=&amp;quot;~\WebServices\ws_ZipCodes.asmx&amp;quot; ServiceMethod=&amp;quot;GetZipCodesStartingWith&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; and my webservice looks like this:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Data.SqlClient;
using System.Web.Services;
using ASAWeb.Business;

namespace ASAWeb.webservices
{
    /// &amp;lt;summary&amp;gt;
    /// Summary description for ws_ZipCodes
    /// &amp;lt;/summary&amp;gt;
    [WebService(Namespace = &amp;quot;http://tempuri.org/&amp;quot;, Description = &amp;quot;Webservice to allow a autocompleter service lookup&amp;quot;)]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Script.Services.ScriptService]
    public class ws_ZipCodes : System.Web.Services.WebService
    {
        protected ArrayList Zip_Arraylist = new ArrayList();
        protected ASAWeb.Business.ASAdbDataContext data = new ASAWeb.Business.ASAdbDataContext();
        [WebMethod]
        public ArrayList GetZipCodesStartingWith(string prefixText, int count)
        {
            //Dictionary&amp;lt;int, ZipCode&amp;gt; dictZipCodes = new Dictionary&amp;lt;int, ZipCode&amp;gt;();// As Dictionary(Of Integer, ZipCode)
            //List&amp;lt;string&amp;gt; lstZipCodes = new List&amp;lt;string&amp;gt;();
            //List&amp;lt;ZipCode&amp;gt; lstZip = new List&amp;lt;ZipCode&amp;gt;();
            try
            {
                prefixText = prefixText + &amp;quot;%&amp;quot;; //add wildcard to end
                //get from the database via stored proc
                var zCodes = data.ZipCodes_GetInfoLike(prefixText, count);
                foreach (var zc in zCodes)
                {
                    Zip_Arraylist.Add(new string[] { zc.Code + &amp;quot; &amp;quot; + zc.City + &amp;quot;, &amp;quot; + zc.State });
                }
            }
            catch (SqlException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return Zip_Arraylist;
        }
    }
}&lt;/pre&gt;&lt;br /&gt; Any ideas?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>