David Wang

David Wang on IIS, ISAPI, Exchange, Virtual Server, and whatever else I fancy...

Browse by Tags

Tagged Content List
  • Blog Post: HOWTO: IIS 6 Request Processing Basics, Part 2 - Web Site, Virtual Directory, and Web Application

    Question: In brief, what is different about a virtual directory that is also set as a Web Application? I can have a virtual directory, and then optionally set it to be a Web Application. Beyond updating the metabase, what does IIS do that causes the virtual directory to "be" a Web application? And...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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. ...
  • Blog Post: 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...
  • Blog Post: 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 put it all into one script so that...
  • Blog Post: 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...
  • Blog Post: 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 received from...
  • Blog Post: 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...
  • Blog Post: HOWTO: Enumerate IIS website and ftpsite configuration (VBScript using ADSI)

    I recently got a request to make a script to illustrate how to enumerate useful values from both Web and FTP sites serviced by IIS, so I decided to make some additions to the original script tool located here to allow it to easily enumerate both Web and FTP sites. The modifications basically illustrate...
  • Blog Post: HOWTO: Access POST form data with ISAPI

    This is a frequently asked question about IIS6 extensibility - how to access the request entity body on the way in - as well as how to configure IIS. Question: I want to catch all incoming requests, add some header and watch it when its out. Therefore I used a filter which can't be use alone in...
  • Blog Post: HOWTO: Rename the Computer running IIS6

    Question: Hi , I have two web servers. One web server(w2k3Ent) and IIS 6.0 in a work group and One identical Web Server in the Domain. I want to now rename the Server names of the both, to comply some policy. Will the IIS functionality be affected because the IUSR accounts still be left with old...
  • Blog Post: HOWTO: Run Console Applications from IIS6 on Windows Server 2003, Part 2

    I finally have enough blog entries about various portions of IIS6 request processing that I can stitch together this meta-blog-entry explaining how it all works together and then apply it towards an issue. You probably want to keep a link to this loaded entry. Anyhow, here goes... Question: We...
  • Blog Post: Why Clicking a hyperlink can result in multiple requests to web server(s)

    Question: Dear Experts, If you could share your opinions or point out some reference links, I do appreciate! My web server: IIS and SharePoint Portal server 2003 My qestion is: After I click one hyperlink in a page (ASP.NET site) using IE, why there are 3 requests recorded in the IIS log...
  • Blog Post: HOWTO: Retrieve Request Headers using ISAPI, ASP, and ASP.Net

    Developers frequently confuse Request Headers, Response Headers, and Server Variables as well as the appropriate syntax to retrieve/manipulate each of them, depending on the API (ISAPI, ASP, and ASP.Net). I am going to clarify all of this right now. :-) Question: So I've managed (thanks to your...
  • Blog Post: HOWTO: Get Field Data for Custom Logging with ISAPI Filter

    Question: I'm trying to write a Filter that handles writing a W3C-compliant log file based on a special set of criteria. I have found most of the needed information in GetServerVariables(), but I still need the following things: sc-status: The status code returned by the server on the request ...
  • Blog Post: HOWTO: Run Console Applications from IIS6 on Windows Server 2003

    Question: I need some help on the following: I am trying to exectute the netstat comand in side a PHP script using PHP on a wnidows server 2003. The problem is that i am haveing a problem getting the netstat command to exec since it requires adminstration privage but PHP does not have such privage...
  • Blog Post: IIS6 and HTTP Server API, Part 1

    Question: Hi, I've found these articles: http://support.microsoft.com/default.aspx?scid=kb;en-us;q311852 http://support.microsoft.com/default.aspx?scid=kb;en-us;q327611 First of all I've got a question. READ_RAW_DATA can be used to modify the request body not only the headers. Why is it gone...
  • Blog Post: HOWTO: Install and run PHP on IIS7

    Question: Hi all, I have trouble to configure PHP 5 (CGI mode) in IIS 7 on Vista 5308... What I did: - Download and unpack PHP - set user permission to PHP folder AND script folder (IIS_IUSRS and Internet Guest Account) - in IIS Manager: Added pages in Default documents - Added in "ISAPI and...
  • Blog Post: IIS7. PreConditions and the Integrated Pipeline

    One of the cooler but definitely unsung feature of the IIS7 Server Core is PreConditions. So, that's what I am going to talk about... yup, I am exploring the little, non-obvious details that is IIS7. What is a PreCondition The basic idea of PreConditions is for a piece of code to run very early...
  • Blog Post: Why some ISAPI Filter events trigger multiple times per request

    Question: Hi everyone, I wrote a ISAPI filter DLL to process text/html content. Whenever there's a request for a .php file, the OnUrlMap gets called 3 times whereas .html or .asp files causes the right behaviour in Filter (i.e. - OnUrlMap gets called once only). How do I get rid off this problem...
  • Blog Post: HOWTO: Sharepoint and CustomAuth, Part 2 - Investigations Update

    About a month ago, I solicited user questions in this blog entry on how to integrate customized authentication protocol with Sharepoint, and I was a little overwhelmed by the responses and the variety of situations that users have posted and shared with me. I have also been pegged by a couple of MCS...
  • Blog Post: HOWTO: Add and Remove an ISAPI Filter using JScript

    Question: Hello, I am looking to automate installation of an ISAPI filter since I want it to be a part of my server deployment. Is there a way to install an ISAPI filter dll using a javascript or a vbscript? If yes can someone give me pointers to the same? Thanks, Answer: Ok... this...
  • Blog Post: HOWTO: Sharepoint and CustomAuth, Part 1 - Soliciting Questions

    I have been getting a bunch of private requests from many people asking me variations of the following questions: "I want to use Sharepoint, but I want user authentication to be done with CustomAuth [or their own Wildcard Application Mapping ISAPI DLL]. I have tried many things, but it does not...
Page 1 of 3 (66 items) 123