HttpContext not available in Class Library

后端 未结 3 753
忘了有多久
忘了有多久 2021-01-07 19:08

I am working on a project where I have a C# class library which needs to use the System.web.HttpContext. I\'ve done this before in another project without probl

3条回答
  •  心在旅途
    2021-01-07 19:44

    Despite your comment that you've added reference to System.Web to the project it is still most likely reason of what you are seeing.

    The classes you see are coming from System.Dll, not System.Web.Dll.

提交回复
热议问题