I've come across a very weird problem. Virtual includes work on all my ASP pages on the entire website, including those in subdirectories, yet they won't work on a particular page I created, even though the virtual include statement is copy & pasted exactly as it appears on the working pages.
What would cause virtual includes to work in one page on a website, but not on another?
Error Message:
[HTML]Microsoft VBScript runtime error '800a01a8'
Object required: ''
/support/battlewinnerflag.inc, line 11 [/HTML]
Statement giving error:
[HTML]<!-- #include virtual=/support/battlewinnerflag.inc -->[/HTML]
Also, non-virtual includes work on the page:
[HTML]<!--#INCLUDE FILE=support/page_header_noconn.inc -->[/HTML]
But all virtual includes give an error.
Virtual includes must work (and work for the rest of the site) so that ASP pages in a subdirectory can access the common includes in a different subdirectory.
For example, the page that is not working is at /articles/articles.asp and the virtual include files are located in the /support directory off the website's root directory.
The file in question (and all files on the website) are data-driven, typically accessing a MS SQL database on another server.
It can't be a typo since the includes are all copied from working files.
As you may have guessed, this is a Windows Server running IIS. Windows 2003 and IIS 6.
Any ideas?