<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Technology 'n Me (Sukesh) : Hostable Web Core</title><link>http://blogs.msdn.com/sukeshak/archive/tags/Hostable+Web+Core/default.aspx</link><description>Tags: Hostable Web Core</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>IIS7 Mobile Admin now on codeplex !!!</title><link>http://blogs.msdn.com/sukeshak/archive/2008/03/20/iis7-mobile-admin-now-on-codeplex.aspx</link><pubDate>Thu, 20 Mar 2008 12:30:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8327172</guid><dc:creator>sukeshak</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sukeshak/comments/8327172.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sukeshak/commentrss.aspx?PostID=8327172</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sukeshak/rsscomments.aspx?PostID=8327172</wfw:comment><description>&lt;p&gt;IIS7 Mobile Admin is a simple web application to administer IIS7 remotely using a mobile phone browser.&amp;#160; I provided few screenshots of IIS7 Mobile Admin in my previous blog post here &lt;a title="IIS7 Mobile Admin" href="http://www.awesomeideas.net/post/2008/03/04/IIS7-Mobile-Admin.aspx"&gt;http://www.awesomeideas.net/post/2008/03/04/IIS7-Mobile-Admin.aspx&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;And I promised to get it on codeplex for your download pleasure and finally it's ready and available    &lt;br /&gt;    &lt;br /&gt;Project Home (Screenshots,FAQ) - &lt;a title="http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx" href="http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx"&gt;http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx&lt;/a&gt;     &lt;br /&gt;Download &amp;amp; Discussion - &lt;a href="http://www.codeplex.com/iis7mobileadmin/"&gt;http://www.codeplex.com/iis7mobileadmin/&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What are the features available in this release (called R1)?      &lt;br /&gt;&lt;/strong&gt;Search Application Pools &amp;amp; Web Sites&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Application Pool      &lt;ul&gt;       &lt;li&gt;Show Requests (Top 10 requests sort in descending order of 'Time Elapsed' &lt;/li&gt;        &lt;li&gt;Show Applications &lt;/li&gt;        &lt;li&gt;Recycle Application Pool &lt;/li&gt;        &lt;li&gt;TODO:Your wishes... &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Web Sites      &lt;ul&gt;       &lt;li&gt;Show Configuration (Show all bindings for the website) &lt;/li&gt;        &lt;li&gt;Start Website &lt;/li&gt;        &lt;li&gt;Stop Website &lt;/li&gt;        &lt;li&gt;TODO:Your wishes &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Get more screenshots on Project Home &lt;a title="http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx" href="http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx"&gt;http://www.awesomeideas.net/page/IIS7-Mobile-Admin.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;img src="http://www.awesomeideas.net/image.axd?picture=WindowsLiveWriter/IIS7MobileAdmin_D7C0/MobileUI_2.png" /&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8327172" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sukeshak/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/Cool+Stuff/default.aspx">Cool Stuff</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/Hostable+Web+Core/default.aspx">Hostable Web Core</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/HWC/default.aspx">HWC</category></item><item><title>IIS7 Mobile Admin</title><link>http://blogs.msdn.com/sukeshak/archive/2008/03/06/iis7-mobile-admin.aspx</link><pubDate>Thu, 06 Mar 2008 14:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8070818</guid><dc:creator>sukeshak</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/sukeshak/comments/8070818.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sukeshak/commentrss.aspx?PostID=8070818</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sukeshak/rsscomments.aspx?PostID=8070818</wfw:comment><description>&lt;P&gt;I wanted to introduce something I’ve been working during last couple of weekends. Yes you guessed it “&lt;B&gt;IIS7 Mobile Admin&lt;/B&gt;” to show some love to our web server administrators who keeps our Web 2.0 world up and running!&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Ingredients&lt;/I&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;I&gt;IIS7 Hosted Web core Service (which I wrote in C++, just like WMSVC IIS Management Service)&amp;nbsp; &lt;BR&gt;&lt;A href="http://www.awesomeideas.net/page/IIS7-Hostable-WebCore.aspx" mce_href="http://www.awesomeideas.net/page/IIS7-Hostable-WebCore.aspx"&gt;http://www.awesomeideas.net/page/IIS7-Hostable-WebCore.aspx&lt;/A&gt; &lt;/I&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;I&gt;ASP.NET website specifically designed for use on browser of a cell phone using LINQ + IIS7 managed API (Microsoft.Web.Administration)&lt;/I&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;I would like to know what are some of the “must have” features you expect from this application. &lt;BR&gt;&lt;/B&gt;&lt;FONT color=#808080&gt;(Keep in mind this is not developed to replace or even be on par with desktop IIS7 manager)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Please add your suggestions/comments/ideas under the following blog post and &lt;STRONG&gt;check out more screenshots&lt;/STRONG&gt;. &lt;BR&gt;&lt;A href="http://www.awesomeideas.net/post/2008/03/04/IIS7-Mobile-Admin.aspx" mce_href="http://www.awesomeideas.net/post/2008/03/04/IIS7-Mobile-Admin.aspx"&gt;http://www.awesomeideas.net/post/2008/03/04/IIS7-Mobile-Admin.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Plan is to get this complete package (both binary &amp;amp; source) on &lt;A href="http://www.codeplex.com/" mce_href="http://www.codeplex.com"&gt;http://www.&lt;B&gt;codeplex&lt;/B&gt;.com&lt;/A&gt;&lt;B&gt; &lt;/B&gt;by next weekend! &lt;BR&gt;Picture is worth a “&lt;FONT color=#808080&gt;how many words do they say?&lt;/FONT&gt;” so a picture below showing how it looks when it runs inside Pocket IE in full-screen.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7MobileAdmin_F0B7/clip_image002_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7MobileAdmin_F0B7/clip_image002_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=599 alt=clip_image002 src="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7MobileAdmin_F0B7/clip_image002_thumb.jpg" width=314 border=0 mce_src="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7MobileAdmin_F0B7/clip_image002_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8070818" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sukeshak/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/Cool+Stuff/default.aspx">Cool Stuff</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/Hostable+Web+Core/default.aspx">Hostable Web Core</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/HWC/default.aspx">HWC</category></item><item><title>IIS7 Hostable Web Core Custom Service (WebCoreService)</title><link>http://blogs.msdn.com/sukeshak/archive/2007/12/24/iis7-hosted-web-core-custom-service-webcoreservice.aspx</link><pubDate>Mon, 24 Dec 2007 12:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6852020</guid><dc:creator>sukeshak</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/sukeshak/comments/6852020.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sukeshak/commentrss.aspx?PostID=6852020</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sukeshak/rsscomments.aspx?PostID=6852020</wfw:comment><description>&lt;P&gt;Hostable Web Core (known as HWC) is a new concept in IIS7 to host a website/webservice inside your own process. In short a smaller hosted version of IIS (an IIS7 express edition?). &lt;BR&gt;This is accomplished by making a LoadLibrary call to load hwebcore.dll (%systemdrive%\Windows\System32\inetsrv\hwebcore.dll)&lt;/P&gt;
&lt;P&gt;From IIS7 onwards you can administer IIS7 remotely using IIS Manager (through HTTPS). When you connect remotely you are actually connecting to a "Web Management Service" called WMSVC. This service uses HWC so that it's not dependent on IIS7 services directly. &lt;/P&gt;
&lt;P&gt;I had some idea around building alternative UI for IIS7, but since WMSVC service calls are not publicly documented I didn't want to start using it since my application might break anytime. So HWC was a surprise to me but with a glitch. I'm too used to managed code that I haven't written C++ code from last 6years. During 1996-2000 C/C++ was my favorite language and then got into languages which are less fussy (VB/VB.net &amp;amp; C#).&lt;/P&gt;
&lt;P&gt;But I had multiple challenges 1) Writing something in a language which I've not used for last 6 years. 2) Writing a windows service which I haven't done before.&lt;/P&gt;
&lt;P&gt;Before diving into the code let's see limitations of HWC (Calling it limitation is wrong so let's say it's by design)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Only one application pool &lt;/LI&gt;
&lt;LI&gt;Only one website/webservice &lt;/LI&gt;
&lt;LI&gt;Separate configuration file &lt;/LI&gt;
&lt;LI&gt;No monitoring like available for IIS7 application pools &lt;/LI&gt;
&lt;LI&gt;Require IIS7 to be installed &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;PS: Project files are in VS2008 but the application doesn't have any dependency with newer versions.&lt;/P&gt;
&lt;P&gt;Ingredients of my &lt;STRONG&gt;WebCoreService&lt;/STRONG&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Native Windows Service which host HWC which provides install/uninstall options &lt;/LI&gt;
&lt;LI&gt;Good IIS7 configuration file (applicationHost.config) which contains all configuration required to run ASP/ASPX/ASMX... pages &lt;/LI&gt;
&lt;LI&gt;TODO: Web/WCF service hosted inside this service which publishes all the management API's for consumption &lt;/LI&gt;
&lt;LI&gt;TODO: Alternate client for managing IIS7 &lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;Native Windows Service which host HWC. Below is a screenshot to see the options available using command-line &lt;BR&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7HostedWebCoreandRemoteAdministration_A4DB/help_2.png" mce_href="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7HostedWebCoreandRemoteAdministration_A4DB/help_2.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=208 alt=help src="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7HostedWebCoreandRemoteAdministration_A4DB/help_thumb.png" width=552 border=0 mce_src="http://blogs.msdn.com/blogfiles/sukeshak/WindowsLiveWriter/IIS7HostedWebCoreandRemoteAdministration_A4DB/help_thumb.png"&gt;&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;All the configuration including where the website points to and what port it's hosting the site etc are mentioned in the configuration file called "WebCoreService.config". This is nothing but the actual applicationHost.config file after few of those things removed from it. &lt;/LI&gt;
&lt;LI&gt;This could be a good managed Webservice or WCF service which would expose management API's. &lt;/LI&gt;
&lt;LI&gt;How about a Mobile Client? which supports SMS (Texting). Just imagine sending a text message to recycle one of the application pool ? &lt;BR&gt;Hosting management site running inside this? &lt;BR&gt;These are only few of those possibilities though :) think crazy stuff and let me know. &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;How to RUN the service?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Extract the zip files with source and the binary files. &lt;BR&gt;Follow these steps to setup the service (&lt;FONT color=#ff0000&gt;make sure you are doing&amp;nbsp;this from an elevated command prompt&lt;/FONT&gt;)&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a folder called "TestPath" inside your "C:\inetpub\" folder &lt;/LI&gt;
&lt;LI&gt;Create 2 folder inside called "wwwroot" and "Logs" &lt;/LI&gt;
&lt;LI&gt;Drop "time.asp" and "time.aspx" pages inside the "wwwroot" folder &lt;/LI&gt;
&lt;LI&gt;Enable event logs notification from the service&lt;BR&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\WebCoreService]&lt;BR&gt;Create a string key "EventMessageFile" and set value as full path to "sample.dll" under the bin folder&lt;BR&gt;Create a DWORD key "TypesSupported" and give value of "00000007"&lt;/LI&gt;
&lt;LI&gt;Goto the folder where the EXE file resides "WebCoreService.EXE" &lt;/LI&gt;
&lt;LI&gt;Install the service using the following command &lt;BR&gt;&lt;STRONG&gt;WebCoreService install&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Start the service using the following command &lt;BR&gt;&lt;STRONG&gt;net start WebCoreService&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Browse to the page &lt;A href="http://localhost:8080/time.asp" mce_href="http://localhost:8080/time.asp"&gt;http://localhost:8080/time.asp&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT color=#008000 size=3&gt;Bingo! Hostable webcore service is ready.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;All the configuration mentioned above like folder path, port number etc can be modified inside the configuration file "WebCoreService.exe.config"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Do let me know if you have any questions or suggestions or even ideas !!!&lt;BR&gt;&lt;EM&gt;Source &amp;amp; binary =&amp;gt; &lt;A href="http://code.msdn.com/hwc/"&gt;http://code.msdn.com/hwc/&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6852020" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sukeshak/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/Hostable+Web+Core/default.aspx">Hostable Web Core</category><category domain="http://blogs.msdn.com/sukeshak/archive/tags/HWC/default.aspx">HWC</category></item></channel></rss>