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: Change IIS User Impersonation Token

Question: Hi, We are using our third party component for doing authentication and authorization with IIS6 web server on win2k3 X64 EE. Here we are using IMPERSONATION concept for this integration. Can anybody describe the required configuration which are needed at IIS 6 for successfully impersonation of users with third party component? Should we need…

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: Diagnose One Cause of "%1 is not a valid Win32 application" on IIS6 on 64bit Windows

Question: I have a new development server that i put together on a Windows 2003 64 bit machine.  I also have SQL Server 2005 and Developers Studio 2005 and 2003 installed on this machine.  I have executed the “Enable32bitAppOnWin64 1” command, as per the instructions when installing Developers Studio.  I am unable to server ASPX pages…

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

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