简体   繁体   中英

IIS Hostable Web Core host ASP.NET MVC

How can i self host my asp.net mvc website inside c# console application or windows service using IIS Hostable Web Core I tried to using this sample: http://blogs.msdn.com/b/carlosag/archive/2008/04/14/hostyourownwebserverusingiis7.aspx but it didn't work for net 4.5.

Can someone suggest me a way to do it please.

thanks

经过一番研究,我决定使用另一种方法:使用iis express使用C:\\ Program Files \\ IIS Express \\ iisexpress.exe在本地托管我的网站,然后将systray设置为false最终用户可能完全看不到它,所以我创建了一个Windows服务,该服务在开始时会创建iisexpress进程并使用我的配置托管我的网站,而在停止时会杀死该进程,我知道iisexpress的性能虽然较低,但对我来说很好并且易于部署。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM