I also had lots of problems with apparently random "blank" ASP pages...
The way I fixed it (temporarily) was by manually opening the page causing the problem with notepad, and just saving it (i.e. "touching" the file). I never figured out why it happens, but I thought it was some IIS cache issue. I also had lots of problems with what we referred to as the "lost session problem" -- occasionally the contents of $Session would just disappear. I never thought the two problems were related, but from what you're saying it sounds like it might be. We ended up replacing all session variables with our own database/cookies solution. Good luck! -----Original Message----- From: Denis Papp [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 1:19 PM To: [EMAIL PROTECTED] Subject: ASP generating blank pages I am running some simple test scripts on an IIS 5 machine with PerlScript, and I have found two scenarios where I end up getting a blank page, even though my own logging indicates that the ASP script is being run. Actually, the appearance is blank, the actual page content is about 4 lines which looks like <!DOCTYPE HTML PUBLIC....> Scenario 1) The first ASP page hit for a new session. Scenario 2) Sometimes, the first ASP page hit for a new session works, but I have a "Redirect" (because they arent 'logged in') and the page that it is redirected to has the problem. Within the PerlScript code, the symptom is that the $Session objects are invalid. I.e. "defined $Session->SessionID" is false. You will get a fatal error when trying to do something like $Session->{'connected'} since Contents is undefined. So I actually test (defined $Session->SessionID) at the top of each page. Here is a sample script that demonstrates the problem: (look at email in plaintext) <%@ Language=PerlScript> <html><body> This is a page <% $Session->Abandon(); %> </body></html> Load this ASP in your browser, and repeatedly hit F5. Every second time you hit F5 you will get the blank page. I finally managed to track down the cause of the problem, and it appears to be a bug in IIS 5 or in ActivePerl. If I go to the application Config in IIS manager and disable "ASP server-side script debugging" the problem goes away. Can anyone confirm if this happens to them? Actually, I just tried with "Session.Abandon" in VBScript, and the problem does not occur, so it looks like a bug in ActivePerl. I have build 630. Denis _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
