0

This is my code:

[HttpPost]
public JsonResult ForgetPassword(string Email)
{
    try
    {
        throw new Exception("testing");
    }
    catch (Exception ex)
    {
        return Json("Error");
    }
}

Locally, it goes in catch block, but in IIS it doesn’t go in the catch block.

Anonymous Asked question May 14, 2021