« Previous Next »

Not Answered Thread: ISAPI Redirect

Last post 11-18-2009 1:59 AM by davcox. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 09-23-2009, 9:31 AM

    ISAPI Redirect

    Hello,

     I've written an ISAPI filter to redirect pages under certain conditions. If the filter redirects to a simple HTML file, it works as expected. If I attempt to redirect to a more complex ASP.NET 2.0 web page (.aspx), then I get an error 403, Forbidden: Access is denied.

    I'm using IIS6 under Windows Server 2003.

    If I remove my ISAPI filter, the ASP.NET page displays correctly. It only fails if it is opened from a redirection within my ISAPI filter.

    I'm using the following code inside my ISAPI filter (OnPreProcHeaders function):

            pHeaderInfo->SetHeader(pCtxt->m_pFC, "url", newUrlString);

            return SF_STATUS_REQ_HANDLED_NOTIFICATION;

    Any ideas?

     

    Keith

     

  • 11-18-2009, 1:59 AM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 217

    Re: ISAPI Redirect

    A lot of times this will happen when your HTML page is in a separate application pool than your ASPX page.  Is this the case? 

    Dave

Page 1 of 1 (2 items)
Microsoft Communities