以编程方式设置httpErrors existingResponse“ PassThrough” ASP.NET MVC

时间:2019-11-20 15:30:13

标签: c# asp.net-mvc web-config global-asax programmatically

我想设置XML的这一位

<system.webServer>
    <httpErrors existingResponse="PassThrough" />
</system.webServer>

以编程方式在Global.asax.cs中而不是在Web.config中。

有可能吗?

0 个答案:

没有答案