Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET WebService: Authentication failed. ExceptionType":"System.InvalidOperationException"
    text
    copied!<p>I have got a textbox and Ajax autocompleteextender in my web page.I have no problem at local Dev Machine.When i upload this page to remote host getting "Authentication failed. ExceptionType":"System.InvalidOperationException" this error. </p> <p>Here is my codes ;</p> <pre><code> &lt;form id="form1" runat="server"&gt; &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt; &lt;Services&gt; &lt;asp:ServiceReference Path="~/WebService.asmx" /&gt; &lt;/Services&gt; &lt;/asp:ScriptManager&gt; &lt;div&gt; &lt;asp:TextBox ID="txtAra" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;cc1:autocompleteextender id="AutoCompleteExtender1" runat="server" servicepath="~/WebService.asmx" servicemethod="IsmeGoreGetir" minimumprefixlength="1" targetcontrolid="txtAra" &gt; &lt;/cc1:autocompleteextender&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>And then web service side ;</p> <pre><code>OleDbConnection con; OleDbCommand cmd; OleDbDataReader dr; [WebMethod(EnableSession = true)] public string[] IsmeGoreGetir(string prefixText, int count) { con = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + Server.MapPath("~/App_Data/nobetRehber.mdb")); cmd = new OleDbCommand( "Select * from Rehber Where AD like '" + prefixText.ToUpper() + "%'",con); OleDbDataAdapter da = new OleDbDataAdapter(cmd); if (con.State != ConnectionState.Open) con.Open(); DataTable dt = new DataTable(); da.Fill(dt); string[] items = new string[dt.Rows.Count]; int i = 0; foreach (DataRow dr in dt.Rows) { items.SetValue(dr["AD"].ToString(), i); i++; } con.Close(); return items; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload