HOWTO: PreCondition an ISAPI Extension DLL

Question: Hello We have a legacy x64 ISAPI extension that runs without problems in Win 2003 64bit – IIS 6.0. But in Win2008 EBS Security Manager setup, IIS 7.0 Default Application Pool’s WOW64 / Enable32BitApp property is enabled by default, and this makes x64 ISAPI extension DLL to fail loading. By setting the Enable32BitApp option…

2

HOWTO: List all Virtual Directories and Paths of a List of Servers

Question: I need to audit web servers in my domain, and would like to be able to connect to each server, and enumerate the virtual directories — ultimately leading to a link to each web site hosted by the server. Can this code be modified to get that information? Thanks. Answer: Yes, you can modify…

12

HOWTO: Basic Native/Managed Code Interop

IIS7 core extensibility model supports both native and managed code as first-class citizens. So, I feel it is time for a little refresher on managed/native code interop… starting with the more popular route of how to wrap native code API for use within managed code. I am using the newer syntax introduced with .Net Framework…

1

HOWTO: Convert between JScript Array and VB Safe Array

I recently got a question about how to manipulate the LIST data type within JScript since my sample code only illustrated VBScript. Well… one reason why that example is in VBScript is because LIST manipulation (a VB SafeArray) is more straight forward and requires much less code in VBScript. Then, there is Microsoft documentation which…

12

HOWTO: Monitor Virtual Server Events

I think Virtual Server Events and Asynchronous Tasks are two of the least utilized features of the Virtual Server Administration API. Contrary to the often-asked task of “find the VM, turn it off, manipulate its VHD, then turn it back on”, which shows the synchronous, task-driven side of the VS Admin model, Events and Asynchronous…

9

HOWTO: Install and Run PHP on IIS7, Part 3

A short while ago, I came out with a small script to properly configure PHP for IIS7. Sure enough, I got asked to make a similar one for IIS6. So, I figure that while I am at it, I might as well cover IIS4, IIS5, and IIS5.1 as well since it is not very different, and…

5

Anatomy of an Application Pool Crash

Question: Ok, I read through David Wang’s Troubleshooting crashes thing and got the DebugDiag and I am able to reproduce the problem. If I select Hang, and type in one of the website addresses that we host on this server, the moment the Hang Test starts it brings the entire Application Pool to a stand…

7

HOWTO: Install and Run PHP on IIS7, Part 2

A couple of months ago, I wrote a quick and dirty entry on how to install PHP on IIS7. The main purpose of that entry was to explain the details of what was going on as well as cookie-cutter instructions of one way to successfully install PHP on IIS7. Well, the responses that I have…

51

Be Weary of Stylish Fonts and Commandlines!

I see variations of this common “stylish” mistake all the time… so I will highlight it this one time. Question: Hi, according to http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/69a58513-141a-4adb-b6bc-2aaad4ea77b8.mspx?mfr=true I would like to trace the executing requests in iis6, but when I execute thelogman start W3wpTrace –p “IIS: Request Monitor” -ets command, I get the following error: C:\>logman start W3wpTrace…

4