Skip to content

HttpContext.Current 为 null

<httpRuntime> 标记上设置以下特性。

xml
<system.Web>
	<httpRuntime targetFramework="4.5" />
</system.Web>

参考:

  1. Why is HttpContext.Current null after await?