I have a test server script below….
public static void test()
{
int iCount = HttpContext.Current.Session.Count;
}
On the form load event, it called that script and got the error below.
Failed to execute deployed method 'FormLoaded', using entity 'frmServer'. Object reference not set to an instance of an object.
Does anyone get this object reference error when using the HttpContext object? Any suggestion?