🇵🇸 Call for a #CeasefireNOW 🇵🇸

Act Now

OWIN, Katana, and Helios At DDDMelbourne – Presentation Slides

Here are the slides of my last talk “OWIN, Katana, Helios…What’s Going On?!” I delivered at DDD Melbourne. Sadly there was no recording. Owin, Katana, and Helios from Emad Alashi

July 21, 2014 Â· Emad Alashi

Performance Counters For Multiple Processes With Same Name

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). 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: ...

October 13, 2012 Â· Emad Alashi

Microsoft.Web.Administration for IIS

Update: In addition to this post, you can check as well the valuable post of Stuart Cullinans’s. One of the recent projects I worked on involved managing IIS programmatically, and I found the proper tool for it, meet “Microsoft.Web.Administration”. You can read about this library’s purpose in its own page above; what I will list here are three points I noticed while dealing with the library: I couldn’t find where to download, or install the library from, it appeared to be residing in “C:\Windows\SysWOW64\inetsrv\Microsoft.Web.Administration.dll” and yes my OS is 64-bit I am not sure where you can find that on a 32-bit machine The main class ServerManager reads data the moment it’s created only, it will NOT maintain a valid state after the initial read; for example, consider the following snippet: static WorkerProcess currentWP; static void Main(string[] args) { currentWP = new ServerManager().ApplicationPools[0].WorkerProcesses[0]; while (!Console.ReadLine().Equals("quit")) { Console.WriteLine(currentWP.ProcessId.ToString()); } } 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). ...

September 11, 2012 Â· Emad Alashi

Hide Subfolder in Multiple Domains Under One Site

After I have moved to WinHost, 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. 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 here, here, here, and here that helped a lot in achieving this. So I managed to have www.emadashi.com and www.dotnetarabi.com 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. ...

December 26, 2011 Â· Emad Alashi