473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Weird ASP virtual include problem

2
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 4620
WisTex
2
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
Niheel
2,460 Expert Mod 2GB
Glad you found the problem. :-)
Feb 6 '06 #3

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

Similar topics

6
by: Rob Long | last post by:
Hey, I've written a custom HTML library using many PHP scripts as seperate files (just like I'd do a java project) and I'm having some problems where I'm including scripts in different...
3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
7
by: jason | last post by:
I am getting twisted by the possibility that my virtual includes which currently work great on non-domain remote IP will crash if I purchase a domain and point it to one of my designated...
0
by: Lachlan James | last post by:
Hi, I am having a weird problem when doing an http post to one of my aspx pages. I have a page (page1.aspx) which basically takes in a request (xml request) and adds a record to the database...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
2
by: adina | last post by:
Hi, I have 2 classes in my application: class A and class B. in CaptureDoc.h class CCaptureDoc : public CWinpcap { public: CCaptureDoc(wxFrame* capframe, CCaptureWindow* capwindow); ...
8
by: lmfmaw | last post by:
Hi all, I've hit the wall with this "fairly" simple problem. As you can see in the code below, my destructors don't do their job as they are supposed to (I left them empty for this example). I'm...
3
by: GAURAV AGRAWAL | last post by:
Hi Guys, Can someone please explain me why this is happening #include<iostream> using namespace std; class a { public: int a1; // If I remove this it'll work fine
6
by: maya | last post by:
hi, http://www.mayacove.com/design/nav/nav.html this dynamic menu is working fine in FF and IE7, but in IE6 can only test in that "stand-alone" IE6...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.