David Wang

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

Browse by Tags

Tagged Content List
  • 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: 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: 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: 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: 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: 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: 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: 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: 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: HTTP.SYS, IIS, and the 100 continue

    Question: Hi David, "My Company" is a leading middleware provider for mobile multiplayer games. Cutsomer like Disney, THQ etc. The backend is built on .NET. We went live in the US with W2K3/IIS6 which is great. But we have a major IIS6 issue. The handsets connect through HTTP/POST and sometimes...
  • 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: Thoughts on Changing Response Content Type

    Question: Hi I´m using IIS 5 with ASP NET 2.0. I´ve develop an isapi application. the response content type its text/hml it´s posible chaged to text/xml thanks Answer: In general, the handler which generates the response should own its Content-Type because it should be the only entity...
  • Blog Post: MFC ISAPI Template and ISAPI Development

    Question: I've read on msdn that for Visual Studio 2005 the MFC ISAPI extension template was discontinued and that for new development "ISAPI entry point functions" should be used instead. I'm interpreting that as the MFC isapi classes are problematic. Could you give some honest commentary regarding...
  • Blog Post: Thoughts on IIS Configuration Changes and when it takes effect

    Question: Hello! I follow you blog daily. Good stuff! On my work I'm responsible for a web server, running a web site with +150k users. (Win2k3) The application is split into different modules, and divided into different application pools. (Some are Framework 1.1 and some 2.0) Now, do you have...
  • 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: Troubleshoot HTTP Error 999

    Question: What is a 999 error and how can I troubleshoot it? It's not an error code that IIS will allow a custom error page for. Answer: Yup, you are correct in saying that error 999 is not an HTTP Error that IIS will generate. Hence, you cannot configure a custom error page for it. Therefore...
  • 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: Why IIS6 can send invalid HTTP Responses

    Question: Hello All, My client has a IIS 6.0 with some static pages configured in it. My application is a middleware that sits in between the browser client and the IIS 6.0 Web server. Now, my problem is that IIS 6.0 is always sending Responses without Content-Length , but with Connection: Keep...
  • Blog Post: Why ISAPI Filters can load in some but not all websites on a Domain Controller

    I recently encountered this question from multiple users simultaneously, and while the behavior looks bizarre, the answer is equally peculiar... so I thought it nice to share this little gem... Question: Hi All, I have an isapi filter that works correctly. In one machine the filter load correctly...
  • Blog Post: HOWTO: Retrieve and Interpret ISAPI Filter Status

    Question: Is there way to script a check on the success or failure of the Filter, ie a vbscript object that contains the state of loaded DLL's? One can get the list of filters installed from the metabase, but how would one get the state? The metabase doesn't seem to contain that. Doesn't necessarily...
  • Blog Post: Does IIS6 truncate HTTP headers at a hard-coded limit?

    Question: Using IIS the HTTP_ACCEPT header server variable received from the client appears to have a hard coded limit of 259 characters. This is causing problems when using a Windows Mobile 5 Smartphone which has a longer string than 259 characters which is getting truncated. The phone then receives...
Page 1 of 3 (71 items) 123