Good evening, gentlemen.
I am doing a user registration in college work and at logar this error appears.
How can I resolve?
privateUsuarioMapear(DataRowregistro){varusuario=newUsuario();usuario.Nome=Convert.ToString(registro["NOME"]);
usuario.Senha = Convert.ToString(registro["SENHA"]);
usuario.Email = Convert.ToString(registro["EMAIL"]);
usuario.Telefone = Convert.ToString(registro["TELEFONE"]);
usuario.Status = (Status)Convert.ToInt32(registro["STATUS"]);
//usuario.Funcao = Convert.ToString(registro["FUNCAO"]);
//usuario.Setor = Convert.ToString(registro["SETOR"]);
return usuario;
}
I do not know how to proceed. I've tried almost everything.