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: WebDAV, Source, and Read Permissions on IIS

    Question: Hello: With the new WebDAV upgrade in IIS 7.0, there is a permission named "Source". How is the "Source" permission different from "Read" please? What if "Source" is enabled but "Read" is not?? Answer: Source and Read permissions control different behaviors. Read permission controls...
  • Blog Post: Managed Modules and ISAPI Filters

    Question: Hello, I have an isapi filter and a managed module. I need to put both in the same website and I need that the manage module run before the isapi filter. The sequence are: Module--->ISAPI filter. How can I do this? Answer: The answer really depends on the filter events that the...
  • Blog Post: 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...
  • Blog Post: IIS7 Handlers - accessPolicy and requireAccess

    Question: Hello: In IIS 7.0, you can edit a handler mapping in the Handler Mappings applet (like for AspClassic), then click Request Restrictions button, Access tab, and select the "Write" permission. But even when the "Edit Feature Permission" in that site/folder is set to Read+Script+Execute...
  • 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: Create Custom Application Pool from Commandline

    Question Hi, I have a Web site configured to run in a custom application pool. The pool identify is set to a domain user. I can change the users password using IIS Manager, but is there a command line method ? Thanks Answer You can use the ADSUTIL.VBS tool to do this from the commandline...
  • Blog Post: Internet Explorer is not an HTTP Validator

    Question: I tried a 2nd approach in porting client code from WinInet, and that was to utilize managed C++, as opposed to WinHttp. After implementing the .NET managed client code... HttpWebRequest^ myReq = dynamic_cast<HttpWebRequest^>(WebRequest::Create( strTargetURL )); myReq->Method...
  • 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: CGI Failing with 404 on IIS

    Yes... software can have bugs, even if you test it. :-) Question: I have written a C EXE that I have renamed as 'prog.cgi'. I have tested it successfully on IIS 5.0 on Windows 2000 Server and IIS 6.0 on Windows 2003 Server. The program is invoked like so: http://mysite.com/cgi-bin/prog.cgi...
  • Blog Post: Can ISAPI Filter change the Request's domain name?

    Question: Hi, I would like to know if we can get the entire URL that is sent through the browser into the ISAPI filter DLL. E.g. If I have a URL like - http://www.mysite.com/test what I get into the DLL (using GetHeader) is "/test". But I need the entire URL as I want to make changes even...
  • 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: IIS, Security Templates, and Anonymous Authentication

    Sigh... security is never black and white, is it? :-) Question: Environment: IIS6.0 Windows 2003 R2, Windows 2003 level domain. Everything standard. 1) The Microsoft security guide for IIS6.0 says that the IUSR account needs Log on Locally rights. 2) The Microsoft group policy Enterprise security...
  • 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: Deploying and Updating Virtual Machines

    The following are some of the more frequently asked questions when it comes to deploying a group Virtual Machines sharing common configuration. After updating the VHD and VMC, how to re-deploy the changes out to the group of physical machines After deploying the duplicate VHD and VMC, how to...
  • Blog Post: 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...
  • 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: IIS Configuration Woes with ADSI, WMI, and VBScript

    You know, configuration of IIS can be quite confusing, with the various interfaces, paradigms, and programming languages. However, if you keep your wits about you, you can avoid the common pitfalls... Question: I need help with the following code. I'm trying to create an application pool to set...
  • 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: ISAPI Filter and the IIS6 Process Model

    Question: In IIS6, is there a way to have a top-level filter run in a process space separate from each website's process space? Under IIS5, our filter has been used to store a large data cache to reduce the number of round trips to our database. Now, in IIS6, this large data cache is unfortunately...
  • 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: IIS and Email?

    Ok, this question simply dumbstruck me with its improper assumptions that I felt necessary to respond... Question: Hi, I just started working at a new startup company that does all their email via an IIS server, POPing into outlook express. I would really prefer to not have to use outlook express...
Page 1 of 8 (182 items) 12345»