Writing wcf service for autocomplete extender ? In Asp.net
<p>In Web application, i write a wcf service for autocomplete externder, but when i write service and build the project it is showing some error like 
Modifier public is not valid for this item. This is my wcf service :</p>

<pre><code>namespace WebApplication1
{

public class AutoComplete : IAutoComplete
{

    public List&lt;string&gt; autocomplete(string prefix, int cont)
    {

        SuryaSasiDBDataContext content = new SuryaSasiDBDataContext();
        List&lt;string&gt; mystring = new List&lt;string&gt;(); 
        var qqry = from qry in content.Emps
                   where System.Data.Linq.SqlClient.SqlMethods.Like(qry.ename, prefix + "%")
                   select new
                   {
                       qry.ename
                   };

        foreach (var inqry in qqry)
        {
            string srt = AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(inqry.ename, inqry.ename);
            mystring.Add(srt);
        }

        return mystring;

    }

}
</code></pre>

<p>}</p>

<pre><code> public interface IAutoComplete
   {

    [OperationContract]

     List&lt;string&gt; autocomplete(string prefix, int cont);
  }

    &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
    &lt;/asp:ScriptManager&gt;
    &lt;asp:TextBox ID="txtsear" runat="server" &gt;&lt;/asp:TextBox&gt;  
    &lt;asp:AutoCompleteExtender ID="AutoCompleteExtender1" EnableCaching="true"
        BehaviorID="AutoCompleteEx"
        MinimumPrefixLength="1" CompletionInterval="100"
        CompletionSetCount="20" TargetControlID="txtsear" ServiceMethod="autocomplete" ServicePath="~/AutoComplete.svc"   runat="server"   ShowOnlyCurrentWordInCompletionListItem="true" &gt;
    &lt;/asp:AutoCompleteExtender&gt;
</code></pre>
