HttpContext.Current 为 null
在 <httpRuntime>
标记上设置以下特性。
xml
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
参考:
在 <httpRuntime>
标记上设置以下特性。
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
参考: