Off首字母要大写,注意大小写
<customErrors mode="Off"> <error statusCode="404" redirect="/Home/http404"/> </customErrors>