Skip to content

Instantly share code, notes, and snippets.

@thdotnet
Created February 22, 2017 09:22
Show Gist options
  • Save thdotnet/8e07cf73026bafddb3491919c9dabc70 to your computer and use it in GitHub Desktop.
Save thdotnet/8e07cf73026bafddb3491919c9dabc70 to your computer and use it in GitHub Desktop.
Fix HttpContext.Current sometimes null
Sometimes the root cause of HttpContext.Current null is the missing <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> in the web.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment