471,873 Members | 954 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

Weird ASP virtual include problem

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?
Feb 6 '06 #1
2 4475
Okay, found the problem. It actually had nothing to do with the includes... except it did....

I included the wrong page header. I needed to include the one with the database connection string, and I included the one without the connection string. The virtual includes that were choking were the ones that needed the database connection string to work.
Feb 6 '06 #2
2,452 Expert Mod 2GB
Glad you found the problem. :-)
Feb 6 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by redneck_kiwi | last post: by
reply views Thread by Lachlan James | last post: by
reply views Thread by P Pulkkinen | last post: by
2 posts views Thread by adina | last post: by
8 posts views Thread by lmfmaw | last post: by
3 posts views Thread by GAURAV AGRAWAL | last post: by
6 posts views Thread by maya | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.