项目根目录下的Web.config
<system.web> <customErrors mode="On" defaultRedirect="~/Error/Index"> <error statusCode="500" redirect="/Error/page_01" /> <error statusCode="404" redirect="/Error/page_02" /> </customErrors> </system.web>
项目根目录下的Web.config
<system.web> <customErrors mode="On" defaultRedirect="~/Error/Index"> <error statusCode="500" redirect="/Error/page_01" /> <error statusCode="404" redirect="/Error/page_02" /> </customErrors> </system.web>
转载于:https://www.cnblogs.com/hcfan/p/4892705.html