ASP Page in Different Directory Not Passing Variables
Posted on 2011-09-10
I have an existing app fully running asp pages under IIS 6. I now need to add the ability for the users to generate PDF reports from what they already display on the screen. To do this I have read that the asp page that generates the PDF should not be running in the same virtual directory due to possible thread problems (see quote from AspPDF website below):
IMPORTANT: Avoid calling ImportFromUrl on a URL located in the same virtual directory as the script that makes the call to ImportFromUrl. According to Microsoft KB article Q316451, "this can result in poor performance due to thread starvation," and may produce the error exception "MSXML2::ServerXMLHTTP Error: The request has timed out."
With that being said, I created a separate virtual directory and simply redirected my page to the new folder. I know it actually read the new page as it produced an error telling me that my includes couldn't be found. I copied the necessary includes into the new virtual folder since they wouldn't work with an absolute path. Once that was fixed and it found the necessary includes, that's when I get the 404 error - page not found.
What am I doing wrong? I figure it's got to be something simple - or maybe not. I'm just too fried to continue to dwell on it. Any help is greatly appreciated. See next comment - page not found fixed... now about the session var issue...