Violation Occurs When the Path in the #Include Virtual or File Directive Is More Than 260 Characters

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

On This Page


If a long path or file name (more than 260 characters) is used in the <!--#include virtual | file ="filename"--> directive in an ASP page, IIS generates an Access Violation error message.


The buffer allocated for the file name is 260 characters long. Therefore, a file name that is more than 260 characters causes a buffer overflow and an Access Violation error message to occur.


Windows 2000

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

Windows NT 4.0

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:;EN-US;CNTACTMS
NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix for Windows NT 4.0 should have the following file attributes or later:
   Date      Time    Version  Size     File name  Platform
   01/03/00  01:45p  4.2.737  329,024  Asp.dll    x86
   01/03/00  01:45p  4.2.737  550,160  Asp.dll    Alpha


Windows 2000

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

Windows NT 4.0

Microsoft has confirmed that this is a problem in Windows NT 4.0.


A fix has been added to check the file-name length. If the file name is more than 260 characters, a "Include file not found" error message is returned to the browser.


Article ID: 257619 - Last Review: October 20, 2013 - Revision: 3.2
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
kbnosurvey kbarchive kbbug kbfix kbwin2000sp1fix KB257619

Contact us for more help

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