Running VS2010 (SP1) using the latest Telerix Q3 2011 controls, ASP.NET version 4, AjaxControltoolkit version 4 on a Windows 2008 R2 installation.
I am using a web service:-
[ScriptService]
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class PS_AdminWebInterface : System.Web.Services.WebService
{
[WebMethod(EnableSession = true)]
public string[] GetSessionString(string sessionKey)
{
string[] results = new string[2];
results[0] = sessionKey;
try
{
if (Session["ClientID"].ToString() == "0") //Logged in users only
{
results[1] = "";
Session["ErrorOccurred"] = true;
}
else if (Session[sessionKey] == null) //Does key exist
{
results[1] = "";
Session["ErrorOccurred"] = true;
}
else
results[1] = Session[sessionKey].ToString();
}
catch
{
results[1] = "";
}
return results;
}
}
I have debugged the web service call and it is definitely being called and no exception is raised - however the javascript call :-
PlumSoftware.PS_AdminWebInterface.GetSessionString(ps_interface_sessionKey, GetSessionString, OnTimeOut, OnServiceError);
fails in the following function:-
function GetSessionString(result)
{
if (result[1] != "0")
{ //Data changed
ps_interface_keepalive = 0; //Reset keepalive
__doPostBack(ps_interface_postbackcontrol.value, result[1]);
}
}
the result returned is always null
I have spent a few hours looking through your forums but have found no clues as to why this would be happening.
I am using a web service:-
[ScriptService]
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class PS_AdminWebInterface : System.Web.Services.WebService
{
[WebMethod(EnableSession = true)]
public string[] GetSessionString(string sessionKey)
{
string[] results = new string[2];
results[0] = sessionKey;
try
{
if (Session["ClientID"].ToString() == "0") //Logged in users only
{
results[1] = "";
Session["ErrorOccurred"] = true;
}
else if (Session[sessionKey] == null) //Does key exist
{
results[1] = "";
Session["ErrorOccurred"] = true;
}
else
results[1] = Session[sessionKey].ToString();
}
catch
{
results[1] = "";
}
return results;
}
}
I have debugged the web service call and it is definitely being called and no exception is raised - however the javascript call :-
PlumSoftware.PS_AdminWebInterface.GetSessionString(ps_interface_sessionKey, GetSessionString, OnTimeOut, OnServiceError);
fails in the following function:-
function GetSessionString(result)
{
if (result[1] != "0")
{ //Data changed
ps_interface_keepalive = 0; //Reset keepalive
__doPostBack(ps_interface_postbackcontrol.value, result[1]);
}
}
the result returned is always null
I have spent a few hours looking through your forums but have found no clues as to why this would be happening.