<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Iis on Emad Alashi</title>
    <link>https://emadashi.com/tags/iis/</link>
    <description>Recent content in Iis on Emad Alashi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 21 Jul 2014 20:29:14 +0000</lastBuildDate>
    <atom:link href="https://emadashi.com/tags/iis/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OWIN, Katana, and Helios At DDDMelbourne – Presentation Slides</title>
      <link>https://emadashi.com/2014/07/owin-katana-and-helios-at-dddmelbourne-presentation-slides/</link>
      <pubDate>Mon, 21 Jul 2014 20:29:14 +0000</pubDate>
      <guid>https://emadashi.com/2014/07/owin-katana-and-helios-at-dddmelbourne-presentation-slides/</guid>
      <description>&lt;p&gt;Here are the slides of my last talk “OWIN, Katana, Helios…What&amp;rsquo;s Going On?!” I delivered at &lt;a href=&#34;http://dddmelbourne.com/&#34;&gt;DDD Melbourne.&lt;/a&gt; Sadly there was no recording.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;div style=&#34;margin-bottom: 5px;&#34;&gt;
  &lt;strong&gt; &lt;a title=&#34;Owin, Katana, and Helios&#34; href=&#34;https://www.slideshare.net/splashup/owin-katanahelios&#34; target=&#34;_blank&#34;&gt;Owin, Katana, and Helios&lt;/a&gt; &lt;/strong&gt; from &lt;strong&gt;&lt;a href=&#34;http://www.slideshare.net/splashup&#34; target=&#34;_blank&#34;&gt;Emad Alashi&lt;/a&gt;&lt;/strong&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Performance Counters For Multiple Processes With Same Name</title>
      <link>https://emadashi.com/2012/10/performance-counters-for-multiple-processes-with-same-name/</link>
      <pubDate>Sat, 13 Oct 2012 08:48:00 +0000</pubDate>
      <guid>https://emadashi.com/2012/10/performance-counters-for-multiple-processes-with-same-name/</guid>
      <description>&lt;p&gt;There are couple of posts talking about this subject: when you have multiple process’s with the same name, it’s not straightforward to figure out which performance counter instance represents which process. The suggestion would be to use the process ID and the “ID Process” performance counter (This is not the essence of this post, if you know this already scroll down).&lt;/p&gt;
&lt;p&gt;To explain this further let’s say we have two web applications with two different application pools that we wish to monitor their consumption of memory (though probably there are better ways to do it). The worker process for a web application on IIS is a w3wp.exe process, so for our two web applications we will have two w3wp.exe process’s running like the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Microsoft.Web.Administration for IIS</title>
      <link>https://emadashi.com/2012/09/microsoft-web-administration-for-iis/</link>
      <pubDate>Tue, 11 Sep 2012 07:10:54 +0000</pubDate>
      <guid>https://emadashi.com/2012/09/microsoft-web-administration-for-iis/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: In addition to this post, you can check as well the valuable &lt;a href=&#34;http://stuartcullinan.blogspot.com.au/2011/04/some-tips-on-using-microsoftwebadminist.html&#34;&gt;post&lt;/a&gt; of Stuart Cullinans&amp;rsquo;s.&lt;/p&gt;
&lt;p&gt;One of the recent projects I worked on involved managing IIS programmatically, and I found the proper tool for it, meet “&lt;a href=&#34;http://msdn.microsoft.com/en-us/library/microsoft.web.administration%28v=vs.90%29.aspx&#34;&gt;Microsoft.Web.Administration&lt;/a&gt;”.&lt;/p&gt;
&lt;p&gt;You can read about this library&amp;rsquo;s purpose in its own page above; what I will list here are three points I noticed while dealing with the library:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I couldn’t find where to download, or install the library from, it appeared to be residing in “&lt;strong&gt;C:\Windows\SysWOW64\inetsrv\Microsoft.Web.Administration.dll&lt;/strong&gt;” and yes my OS is 64-bit I am not sure where you can find that on a 32-bit machine&lt;/li&gt;
&lt;li&gt;The main class &lt;strong&gt;ServerManager&lt;/strong&gt; reads data the moment it’s created only, it will &lt;strong&gt;NOT&lt;/strong&gt; maintain a valid state after the initial read; for example, consider the following snippet:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-csharp&#34; data-lang=&#34;csharp&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;static&lt;/span&gt; WorkerProcess currentWP;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;void&lt;/span&gt; Main(&lt;span style=&#34;color:#66d9ef&#34;&gt;string&lt;/span&gt;[] args)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    currentWP = &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; ServerManager().ApplicationPools[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;].WorkerProcesses[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (!Console.ReadLine().Equals(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;quit&amp;#34;&lt;/span&gt;))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Console.WriteLine(currentWP.ProcessId.ToString());
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This code snippet will get the first WorkerProcess of the first Application Pool in the local IIS. Run the code, enter bogus input just to make sure the loop works, and you will find on the Console the W3WP Process Id displayed (e.g. 4295).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hide Subfolder in Multiple Domains Under One Site</title>
      <link>https://emadashi.com/2011/12/hide-subfolder-in-multiple-domains-under-one-site/</link>
      <pubDate>Mon, 26 Dec 2011 17:10:40 +0000</pubDate>
      <guid>https://emadashi.com/2011/12/hide-subfolder-in-multiple-domains-under-one-site/</guid>
      <description>&lt;p&gt;After I have moved to &lt;a href=&#34;http://www.winhost.com/&#34;&gt;WinHost&lt;/a&gt;, I was surprised they don’t support multiple domains under one site out of the box; you have to rely on IIS URL Rewrite magic to achieve that.&lt;/p&gt;
&lt;p&gt;So as expected, I looked for a solution in their KB and the internet (you don’t reinvent the wheel, remember?) and found couple of posts &lt;a href=&#34;http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/&#34;&gt;here&lt;/a&gt;, &lt;a href=&#34;http://learn.iis.net/page.aspx/500/testing-rewrite-rule-patterns/&#34;&gt;here&lt;/a&gt;, &lt;a href=&#34;http://weblogs.asp.net/owscott/archive/2010/01/26/iis-url-rewrite-hosting-multiple-domains-under-one-site.aspx&#34;&gt;here&lt;/a&gt;, and &lt;a href=&#34;http://forum.winhost.com/showthread.php?t=4545&amp;amp;highlight=url&amp;#43;rewrite&#34;&gt;here&lt;/a&gt; that helped a lot in achieving this.&lt;br&gt;
So I managed to have &lt;a href=&#34;http://www.emadashi.com&#34;&gt;www.emadashi.com&lt;/a&gt; and &lt;a href=&#34;http://www.dotnetarabi.com&#34;&gt;www.dotnetarabi.com&lt;/a&gt; working fine together residing in the folders “emadashi-blog” and “dotnetarabi-root” respectively under the root; they both have same IP address, but upon request a redirection is made to the proper application folder.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
