What does this exception can mean? In the "return" line I get an error
Object reference not set to an instance of an object
name
and pass
are properly filled, not null.
public int GetUBID(string name, string pass)
{
var PassHash = GetPasswordHash(pass);
using (var con = new SqlConnection(Config.ConnectionString))
{
return (int)con.ExecuteScalar("spUser_getUBID",
new { name = name, pass = PassHash },
null, null,
commandType: CommandType.StoredProcedure); //<< Exception
}
}