I am getting NullException at cshtml at line 2 but this same code working on local , when u deployed on uat it generating this error how should i approach this error. what methods to debug this. my cshtml
@{
Layout = null;
}
@model Test.Terminal.UI.Models.UserLoginModel
<!DOCTYPE html>
my controller call
public ActionResult RASLogin()
{
return View();
}
when i remove Layout= null line, it will generating error at line 0. some answers suggest that i have to pass default model which i also tried not working.