473,745 Members | 2,149 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird ASP virtual include problem

2 New Member
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/battlewinnerfla g.inc, line 11 [/HTML]
Statement giving error:

[HTML]<!-- #include virtual=/support/battlewinnerfla g.inc -->[/HTML]
Also, non-virtual includes work on the page:

[HTML]<!--#INCLUDE FILE=support/page_header_noc onn.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 4638
2 New Member
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,456 Recognized Expert Moderator Top Contributor
Glad you found the problem. :-)
Feb 6 '06 #3

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

Similar topics

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 directories from already included scripts... basically where there'a an include chain spanning multiple directories. I've reduced the problem to its core:
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 to get a working system just about finished. I am building an interface for our customer service folks to use to manage registered customers and am seeing some weird behavior.
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 folders.....Here is the scenario and question:: If my remote webhost at (eg): ....has a subfolder with with:
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 (via a business object) if that record doesn't already exist.
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 code SHOULD do: - read new (=updated) licensetext from file $license_path then - read and modify recursively all files from $current_dir, replacing old
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); void PacketHandler(struct pcap_pkthdr* pkt_header, const unsigned char* pkt_data);
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 running the Visual Leak Detector library (on VS 2005) to detect memory leaks and whatever I've tried it still complains.. Please can someone help me clean up properly? --------
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
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 (http://browsers.evolt.org/?ie/32bit/standalone, last one on the list) b/c you can't have both IE7 and IE 6 installed.. but I think there's something wrong this "stand-alone" IE6, b/c in it I get this bizarre JavaScript error when I mouse over one of the links in green ("the specified...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.