-1
Guys, I have the new system here of the company trying to run it on localhost, but when I log in it returns this message:
Referência de objeto não definida para uma instância de um objeto.
Here’s the part where he returns that message:
public string verificaLogin() {
    try {
        string actLogin = HttpContext.Current.Session["actLogin"].ToString();
        string actl = actLogin.Split('|')[0];
        if (actl == "ujl") {
            return "false";
        } else {
            return "true";
        }
    } catch (Exception ex) {
        return ex.Message;
    }
}
More specifically this part here:
string actLogin = HttpContext.Current.Session["actLogin"].ToString();
I appreciate any attempt at help!
and has already debugged to see what is null? probably Session
– Ricardo Pontual
The session is returning null, but what is strange is that he is searching the data in the database. When I enter the wrong user or password, it returns that the user does not exist or the password is wrong.
– Eduardo Bezerra
so there’s your problem :)
– Ricardo Pontual