I have a fairly simple CGI application that has worked for years on a IIS5 server that recently got ported to a IIS6 server and started to behave badly.
The script
- creates a XSL file
- creates a XML file
- redirects the user to the newly created XML file
- the XML gets displayed using the XSL in the users browser
Half of the time the script runs normally, half of the time the script only creates part of the XSL.(using all of the same inputs)
This XSL is created in a subroutine, that sub returns and then the XML is created correctly. The sub that creates the XSL is really just print statements with some extrapolated values in it.
The only real clue I have is when I set $|++. Now it seems the XSL gets created but the XML cuts out part way. Go figure. Its very consistant in its behavior when it fails, but its not consistent if it fails.
I'm at a loss as to how to debug this, any suggestions?