Mohammed Asadullah
Mohammed Asadullah

Reputation: 83

ASP.Net web form "not" web API with Owin or self hosting?

I have an ASP.Net webform application , deployed on IIS , now I want to make it self hosted application , I found that Owin can do it , but I am unable to find a way to do it with ASP.Net webform , I have found code with Owin and webapi .I did not found any tutorial or any help on internet .

Upvotes: 3

Views: 1740

Answers (2)

Lex Li
Lex Li

Reputation: 63299

Microsoft only developed Katana/Owin partially and then realized they had to dump ASP.NET WebForms/MVC/Web API/SignalR completely and embraced the new design, ASP.NET Core.

Thus, you can only use Katana to self host Web API and SignalR officially from Microsoft. But third party vendors, such as Cassini, allow you to bundle the web server with your web app, which is another approach to achieve self hosting,

Creating a standalone ASP.NET MVC application for Windows XP

Upvotes: 0

Jim W
Jim W

Reputation: 5026

It's not possible, I go into the details here http://keyoti.com/blog/asp-net-v5web-apivnextowin-a-beginners-primer-part-1/ but basically Web Forms uses System.Web assembly, and System.Web is coupled to IIS.

You can however self host MVC with ASP.NET 5, if that is any use.

Upvotes: 2

Related Questions