I have a Strange thing happening
i have a web method with aCode:<WebMethod(EnableSession:=True)> _
and the method before it returns something it will call another method Which also has the
and another Method on a class will be called and in that method i have something like thisCode:<WebMethod(EnableSession:=True)> _
Code:Dim Session As HttpSessionState = HttpContext.Current.SessionImidiately when i try to assign the drUser("usercomp_id") to the session to Session("usercompany_ID") i get an ErrorCode:Session("usercompany_ID") = drUser("usercomp_id") Session("user_id") = drUser("user_id") Session("UCLev1_ID") = drUser("UCL1_ID") Session("UCLev2_ID") = drUser("UCL2_ID")
drUser("usercomp_id") has a Value its not nothing
Error
Object reference not set to an instance of an object.
Thanks




Reply With Quote