Microsoft KB Archive/884322

= Scripts may not run on a local HTML Web page that references .htc or .xml files in Windows XP Service Pack 2 or Windows XP Tablet PC Edition 2005 =

Article ID: 884322

Article Last Modified on 5/21/2007

-

APPLIES TO


 * Microsoft Windows XP Service Pack 2
 * Microsoft Windows XP Service Pack 2
 * Microsoft Windows XP Service Pack 2
 * Microsoft Windows XP Tablet PC Edition 2005

-





SYMPTOMS
When you use Microsoft Internet Explorer to open an HTML Web page that is located on your local computer that is running Microsoft Windows XP Service Pack 2 (SP2) or Microsoft Windows XP Tablet PC Edition 2005, a script that references .htc or .xml files may not run as expected.



CAUSE
This issue may occur when the HTML Web page, the .htc file, and the .xml file are all located on your local computer.



WORKAROUND
To work around this issue, use one of the following methods.

Method 1: Insert a Mark of the Web comment in your HTML files
When you insert the Mark of the Web comment in HTML file, Internet Explorer applies Internet Zone settings to the Web page. To insert a Mark of the Web comment in an HTML file, follow these steps:  Open the HTML file in Notepad or an HTML Editor. Type one of the following a comments in the HTML file:     

Note The number is parenthesis is the number of characters in the URL that follows. Save the HTML file.</li></ol>

Note The Mark of the Web comment works in Microsoft Internet Explorer 4 and later versions. As part of changes to Internet Explorer in Windows XP SP2, this HTML comment can also be used with multipart HTML (.mht) files, and.xml files. You cannot use a Mark of the Web comment in .mht or .xml files if you use earlier versions of Internet Explorer.

Method 2: Use a local share
Create a shared folder on your local computer, and then save the Web page and all the referenced .htc and .xml files to this shared folder. Then, in Internet Explorer, add the shared folder as a trusted site.

Note To add the shared folder as a trusted site, click Internet Options on the Tools menu, and then click the Security tab.

Method 3: Use HTAs
Use HTML Applications (HTAs) instead of HTML files.

For more information about HTAs, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms536496.aspx

Method 4: Create a new program
Create a Web-based solution that hosts the HTML content in the Internet Explorer Web Object Control (WebOC). For more information about how to develop Web-based solutions for Internet Explorer, visit the following Microsoft Web sites:

http://msdn2.microsoft.com/en-us/library/aa139693.aspx

http://msdn.microsoft.com/ie

http://support.microsoft.com/ie6

Additional query words: windowsxpsp2 winxpsp2

Keywords: kbtshoot kbprb KB884322

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.