Rezner
07-05-2002, 02:44 PM
I have an ASP site running on WinXP Pro and IIS.
Well... the site works fine when accessed from the same computer that the server is running on. BUT, when it is accessed from the Internet or from another computer on the Intranet, it crashes. Not only does the site crash, but the system spontaneously powers down and then reboots.
I, after about an hour of narrowing things down, have determined the problem to be the "pound including" of additional .asp files. I guess I've gotten into the habit of using .asp include files instead of .inc files because I can edit them in InterDev vice WordPad. (interestingly enough, when I change the problem file to be .inc -- then everything works fine.)
Also, if I copy the content out of the included .asp file into the source file and don't #include it, then everything works fine as well.
WHY? WHAT CAUSES THIS? I have developed sites on other systems using this technique and it works. I have ran every update I can find for IIS and it still does it. Anybody have an explanation?
This, causes a crash...(only if the site is accessed from the Internet or other computer on the Intranet)
<!-- #include file=general_functions.asp -->
But this, does not...
<!-- #include file=general_functions.inc -->
Well... the site works fine when accessed from the same computer that the server is running on. BUT, when it is accessed from the Internet or from another computer on the Intranet, it crashes. Not only does the site crash, but the system spontaneously powers down and then reboots.
I, after about an hour of narrowing things down, have determined the problem to be the "pound including" of additional .asp files. I guess I've gotten into the habit of using .asp include files instead of .inc files because I can edit them in InterDev vice WordPad. (interestingly enough, when I change the problem file to be .inc -- then everything works fine.)
Also, if I copy the content out of the included .asp file into the source file and don't #include it, then everything works fine as well.
WHY? WHAT CAUSES THIS? I have developed sites on other systems using this technique and it works. I have ran every update I can find for IIS and it still does it. Anybody have an explanation?
This, causes a crash...(only if the site is accessed from the Internet or other computer on the Intranet)
<!-- #include file=general_functions.asp -->
But this, does not...
<!-- #include file=general_functions.inc -->