Hi ramco1917,
Use Message property of Exception class to display the exact error.
Code
[HttpGet]
public ActionResult Delete()
{
try
{
return PartialView("_DeletePartial");
}
catch (Exception ex)
{
ExceptionLogging.SendExcepToDB(ex);
TempData["Message"] = ex.Message;
}
return null;
}
For more details refer below article.