Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
I am calling web service using Ajax
 $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "../Common/CommonServices.asmx/Getclientdetails",
                data: JSON.stringify({ arr: ListArray1 }),
                dataType: "json",
});
It works good. I deployed this code it works when user loged in it works for a while 
but after some time it shows error.


What I have tried:

To fix this I increase the execution time out time and session but it dose not work.
what should I do?
Posted
Comments
dan!sh 22-Mar-16 4:04am    
Anything on server logs?
Member 11149067 22-Mar-16 6:23am    
[WebMethod(EnableSession = true)]
public List<ecommons> Getclientdetails(List<string> arr)
{
int salesorderid = 0;
string partyid = "0";
string flag=arr[2];
int page_from=0;
List<ecommons> olistclient = new List<ecommons>();
bcommons obcommons = new bcommons();

if (flag == "SO")
{
salesorderid = Convert.ToInt32(arr[0]);
page_from = Convert.ToInt32(arr[1]);
partyid = arr[4];

olistclient = obcommons.GetClientDetails(partyid, page_from, salesorderid, Session["sesDbName"].ToString(), Session["sesPassword"].ToString());
}
else
{
partyid = arr[0];
olistclient = obcommons.GetClientDetails(partyid, page_from, salesorderid, Session["sesDbName"].ToString(), Session["sesPassword"].ToString());
}

return olistclient;
}
dan!sh 22-Mar-16 6:34am    
Avoid posting code in comments. It is hard to read since it is not well formatted. Also, my question is, are there any logs on server side that give details?
Member 11149067 23-Mar-16 3:14am    
no logs on server side
dan!sh 23-Mar-16 3:18am    
Check IIS logs or whatever you are using for some more details. 500 is thrown when there is no suitable error message to send back.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900