【发布时间】:2017-11-03 07:57:22
【问题描述】:
我的 MVC 应用程序中有以下代码。
[HandleError(View = "Error", ExceptionType = typeof(FormatException))]
public ActionResult Indexerror()
{
throw new FormatException();
}
和共享文件夹中的一个名为 > 的视图错误。 当我运行此应用程序时,我无法看到创建的视图,而是在应用程序中弹出服务器错误并显示一条消息
对象引用未设置为对象的实例。
【问题讨论】:
-
请在建议关闭之前发表评论。谢谢。
标签: .net asp.net-mvc asp.net-mvc-4 asp.net-mvc-3