IIS Log Contains Wrong Data When ISAPI Uses Default for File Size

Article translations Article translations
Article ID: 258189 - View products that this article applies to.
This article was previously published under Q258189
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all


When an ISAPI application uses the HSE_TF_INFO data structure to issue a ServerSupportFunction(HSE_REQ_TRANSMIT_FILE), it is allowed to specify 0 as the value of the HSE_TF_INFO::BytesToWrite meaning, "send all file." If zero is specified, then the sc-bytes value in the Internet Information Services (IIS) log file is invalid, because it reflects only the headers and not the entire transfer size.


IIS does not log the total size of the file that is actually transferred, but uses the size argument transmitted to the TransmitFile API.


To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack


Microsoft has confirmed that this is a problem in Internet Information Services 5.0. This problem was first corrected in Windows 2000 Service Pack 1.


The symptoms may be different in IIS 4.0. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
248819 IIS 4.0 Logs Incorrect Values for Bytes Sent Field in W3C Extended Log


Article ID: 258189 - Last Review: October 20, 2013 - Revision: 2.1
  • Microsoft Internet Information Services 5.0
kbnosurvey kbarchive kbbug kbfix kbqfe KB258189

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com