Why I can't use HttpContext or HttpCookie? (Asp.Net Core 1.0)

青春壹個敷衍的年華 提交于 2019-12-01 21:06:36

The namespace for HttpContext and HttpCookie is System.Web which is part of the System.Web.dll library.

Go right click the projects References and select Add References.... In the newly opened window click on Assemblies and then search (via the search bar in the upper right) for System.Web.

Then you should be able to use it via

using System.Web;

So Hello guys

I found a solution, try to use this wonderful blog entry.

Note: Make sure you install the nuget-packages via the nuget installer and make also sure you checked the checkbox “include prerelease”.

Hope my poste was helpful

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!