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: Choice of Development Platform for IIS Modules

    Question: I am starting a new project (ASP.NET 3.5) that will require at least one custom HTTP module. My two development computers are running 32-bit XP Pro/SP2, but I plan to reimage with Vista (already have it ready to be installed). My preference would be to NOT switch to Vista quite yet, but...
  • 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: 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: 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: 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: HOWTO: Useful ASP page to retrieve Request and send Response Headers

    I am finishing up on the series of ASP pages that show how to: Send Responses of arbitrary Status Code Send Responses with arbitrary types of Entity Body Send Responses with arbitrary Headers (this entry) Query Request Headers (this entry) You know, the common programmatic stuff one...
  • Blog Post: Office Automation and IIS

    Every once in a while, I see users asking about how to automate Office applications on the server, either to create a Word document, an Excel spreadsheet, or Powerpoint slidedeck. I understand the noble intentions to re-leverage the functionality of Office and make it web accessible to many simultaneous...
  • 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: Thoughts on Delegating IIS Configuration and Administration

    Question I am running IIS 6.0 on Windows 2003 Server. our web developers needed to create or edit websites, for security reasons I cannot simply give them admin rights or the password to the admin account. I have created an account for them to logon remotely to the webserver, however, they do not...
  • Blog Post: HOWTO: Useful ASP page to return configurable HTTP Status codes

    Sometimes, you just want a simple test page on IIS to do some automated testing of your code that interacts with IIS. Here is another useful one in the series. Question: Hi, I have some negative testing therefore need to have IIS to return 403, 404 or 500. How can I configure each? An automated...
Page 1 of 8 (176 items) 12345»