Thx for your help guys, its solved...the problem was here:
[WebMethod, ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false)]
public static int CartState()
{
DatabaseEntities db = new DatabaseEntities();
var rez = from p in db.PrivremenaKorpa
where (p.SessionID == HttpContext.Current.Session.SessionID)
select p;
return rez.Count();
}
just need to add this line of code above CartState:
[WebMethod, ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false)]