Similar to WCF Self Hosting.
Is there a way to create a website that is "self-hosted" within a console application or dll
?
Probably the wrong way to ask this question, but what i'd like to do is use this website to split results as web pages without creating the website within IIS
.
Thanks.
It is easy to run your asp.net web application without installing any web server. For running your application without IIS you have to use Cassini Desktop Adapter. Now your application is running without IIS It also support VWG application.
Yes. In fact, all ASP.NET Core applications are self-hosted. Even in production, IIS/Nginx/Apache are a reverse proxy for the self-hosted application. In a reasonably standard Program.
ASP.NET Web API does not require IIS. You can self-host a web API in your own host process. New applications should use OWIN to self-host Web API. See Use OWIN to Self-Host ASP.NET Web API 2.
Wix. Wix is another fully-hosted website builder that offers free website hosting. Like most free hosting services, it is supported by displaying ads and Wix.com branding on your free website. You can get rid of it by upgrading to their paid plans.
A very basic HTTP server is implemented by the HttpListener Class in the .NET Framework.
If you need something more powerful, have a look at Microsoft Cassini, a simple HTTP server written in C# licensed under Ms-PL. It's basically a demo how to host the ASP.NET runtime.
If you have visual studio, here is an article I read a while back on how to basically snatch the VS built-in web server and use it for your own purposes:
http://www.codeproject.com/KB/aspnet/LightIIS.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With