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