473,608 Members | 2,412 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 4631
WisTex
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
Niheel
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

6
2706
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:
3
2075
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.
7
2086
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): http://69.8.9.9 ....has a subfolder with with:
0
880
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.
0
1821
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
2
1170
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);
8
1828
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? --------
3
1899
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
1142
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...
0
8010
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8483
jinu1996
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...
1
8157
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6015
isladogs
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...
0
5479
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3967
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...
0
4030
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1336
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.