System.Web.http could not be found RRS feed

  • Question

  • Severity Code Description Project File Line Suppression State
    Warning Could not resolve this reference. Could not locate the assembly "System.Web.Http, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. SIS
    Monday, July 16, 2018 4:36 PM

All replies

  • Hi RanchaniSankar,

    Thank you for posting here.

    You need the Microsoft.AspNet.WebApi.Core package.

    To install Microsoft ASP.NET Web API 2.2 Core Libraries, run the following command in the  Package Manager Console

    PM>  Install-Package Microsoft.AspNet.WebApi.Core

    And you could add the below line before your class declaration

    using System.Web.Http;

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, July 17, 2018 8:26 AM