Click here to Skip to main content
15,902,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've a question - how to self-host ASP.NET in own server? I've searched but can't understand those examples. Maybe somebody can post a good tutorial (for beginners) or source code. I've already installed nuget package
Microsoft.AspNet.WebApi.SelfHost

How to use this? what I have to do to make it host some asp(x) pages.


Hope You understood,
Thanks!
Posted
Comments
[no name] 19-Aug-13 15:38pm    
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/self-host-a-web-api
Sergey Alexandrovich Kryukov 19-Aug-13 15:46pm    
5! Good point, could make a fair answer.
—SA

Please go through the below articles.

Tutorial
Self-Host a Web API (C#)[^].

Sample Code
[MSDN] ASP.NET Web API Self-Host[^].
 
Share this answer
 
v2
Comments
atunahkur 19-Aug-13 16:36pm    
I've already tried the first way (tutorial), but it was crashing...
Crashing does not give a good explanation of the issue. Please debug and see each step carefully.

If you encounter any exception, then please give the details. Otherwise, it will be difficult to resolve.
 
Share this answer
 
v2
Have you tried to host website using IIS? If IIS not installed then you can install it from Add Remove Windows Components. Host your website on IIS by creating Web Application/Virtual Directory and open in Browser using localhost/YourWebAppName.

Refer link [^] for more details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900