Microsoft KB Archive/928850

= Error message when you view an ASP page that uses the server-side Response.Redirect method on a computer that has Windows XP Service Pack 2 installed: &quot;Access denied&quot; or &quot;Permission denied&quot; =

Article ID: 928850

Article Last Modified on 1/18/2007

-

APPLIES TO

 Microsoft Internet Explorer 6.0, when used with:  Microsoft Windows XP Home Edition

 Microsoft Windows XP Professional 

-



SYMPTOMS
Consider the following scenario:
 * You have a Microsoft Windows XP-based computer that has Microsoft Windows XP Service Pack 2 (SP2) installed.
 * You view an Active Server Pages (ASP) page that uses the server-side Response.Redirect method.

In this scenario, you receive one of the following error messages:

Error message 1

Access denied

Error message 2

Permission denied



CAUSE
This problem occurs because of a bug in the Microsoft Internet Explorer 6 update that is included in Windows XP SP2.



RESOLUTION
To resolve this problem, install the latest updates for Internet Explorer 6.



WORKAROUND
To work around this problem, issue a client-side redirect instead of a server-side redirect.

For example, modify the Response.asp file by using the following lines of code.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

document.location.replace('body.asp')

Note The Body.asp file is the script that you create.

<div class="moreinformation_section">

Steps to reproduce the problem
<ol>  On the Web server, use the following code examples to create the files, and then save the files in the same folder.

Main.htm

<HTML>

<HEAD>

<script language=&quot;javascript&quot;>

function hideHelp {

if (bodyfrm.readyState != &quot;complete&quot;) {

return;

}

var fn = bodyfrm.document.location.pathname;

}

</HEAD>

<frameset cols=&quot;30%,*&quot; >

<frame name=&quot;bodyfrm&quot; src=&quot;intermediate.asp&quot; >

<frame name=&quot;help&quot; src=&quot;help.asp&quot; >

</HTML>

Intermediate.asp

<%Response.Redirect &quot;body.asp&quot;%>

Body.asp

<HTML>

Body Frame

<body onload=&quot;document.all.test.value='testing 1, 2, 3';&quot;>

Body Frame

<input name=&quot;test&quot;>

Help.asp

<HTML>

Help Frame

<body onload=&quot;parent.hideHelp&quot;>

Help Frame

</li> On a Windows XP SP2-based computer, open the Main.htm file by using Internet Explorer 6.</li> Refresh the page until you receive one of the error messages that are mentioned in the &quot;Symptoms&quot; section.</li></ol>

Keywords: kberrmsg kbtshoot kbexpertiseadvanced kbprb KB928850

-

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

© Microsoft Corporation. All rights reserved.