Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not find system.web.http

I have to add a system.web.http assembly reference because I added the HttpConfiguration class to my unit test class library project.

When I browse the Add reference dialog I can not find the system.web.http assembly.

The class library project has the .Net 4.5.1 framework targeted.

like image 540
Elisabeth Avatar asked Jan 05 '14 23:01

Elisabeth


People also ask

How do I get System Web DLL?

The best way to get a look under the hood is to create a project and open the References folder. Inside, you'll see all the default libraries, including SYSTEM. WEB. If you right-click a DLL, you can choose "View In Object Browser", which will then open the DLL so you can explore all the stuff inside.

What is .NET system Web?

Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.

What is System Web namespace?

System. Web namespace is an important base for Web Form user interface and web services. Use of Built-in Objects like Request and Response are very common and widely used. We directly write them without creating objects as they are built-in objects.


1 Answers

in order to get the system.web.http you will need to install a nuget package in the nuget command line: Install-Package Microsoft.AspNet.WebApi.Core

https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Core/

like image 123
Paul Avatar answered Oct 16 '22 03:10

Paul