Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get System.Web.Http.Owin?

Tags:

.net

owin

I had a version number problem with system.web.http.owin.

So I removed it from my projects package references, with the idea that I would re-added it to see if it fixed the problem. However it has disappeared completely. I.e. in visual studio if I go:

solution explorer > myProject > references > RMC > add reference >

and then search for system.web.http.owin it doesn't appear.

Any ideas what has gone wrong or what package I need to install to make it re-appear.

My original error message...

Error 7 Assembly 'System.Web.Http.Owin, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Web.Http, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' e:\user\project1\src\packages\Microsoft.AspNet.WebApi.Owin.5.1.1\lib\net45\System.Web.Http.Owin.dll Smots.Core

like image 762
spiderplant0 Avatar asked Feb 11 '14 00:02

spiderplant0


People also ask

What is the use of Microsoft OWIN?

OWIN allows web apps to be decoupled from web servers. It defines a standard way for middleware to be used in a pipeline to handle requests and associated responses. ASP.NET Core applications and middleware can interoperate with OWIN-based applications, servers, and middleware.

What is OWIN in ASP NET?

OWIN allows web apps to be decoupled from web servers. It defines a standard way for middleware to be used in a pipeline to handle requests and associated responses. ASP.NET Core applications and middleware can interoperate with OWIN-based applications, servers, and middleware.

What is open web interface (OWIN) in ASP NET Core?

Open Web Interface for .NET (OWIN) with ASP.NET Core. ASP.NET Core supports the Open Web Interface for .NET (OWIN). OWIN allows web apps to be decoupled from web servers. It defines a standard way for middleware to be used in a pipeline to handle requests and associated responses.

How can I use WebSockets with an OWIN-based server?

Run ASP.NET Core on an OWIN-based server and use its WebSockets support Another example of how OWIN-based servers' features can be leveraged by ASP.NET Core is access to features like WebSockets. The .NET OWIN web server used in the previous example has support for Web Sockets built in, which can be leveraged by an ASP.NET Core application.

How to construct an OWIN environment using httpcontext?

You can construct an OWIN environment using the HttpContext. var environment = new OwinEnvironment(HttpContext); var features = new OwinFeatureCollection(environment); OWIN keys


1 Answers

The NuGet package Microsoft.AspNet.WebApi.Owin contains that DLL.

You can install it by right-clicking on the References folder of your project and selecting "Manage NuGet Packages..." and searching for "Microsoft.AspNet.WebApi.Owin". Or you can use the Package Manager Console and type the following:

Install-Package Microsoft.AspNet.WebApi.Owin 

If you use the Package Manager Console within Visual Studio, be sure you have the intended project selected in the drop down labeled "Default project:" That is easy to overlook.

like image 135
Wallace Kelly Avatar answered Oct 02 '22 10:10

Wallace Kelly