解决办法: 在webconfig中设置 <system.web><customErrors mode="Off"/></system.web> 再次调用url 即可显示错误 转载于:https://www.cnblogs.com/wujiangling/p/11060981.html