Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st March 2005, 08:42 AM   #1

Username: Ben
Rank: WF101 Fanatic
Join Date: Jan 2005
Posts: 181
Points: 26.24
Question ASP Error

i'm getting this erroR... Wot doeS it mean?

Code:
Active Server Pages error 'ASP 0234' Invalid include directive E:\INETPUB\ESVC001320\HTML\../assets/lib/MSDBConnection.inc, line 2 Server side include directives may not be present in script blocks. Please use the SRC= attribute of the <SCRIPT> tag.
Ben is offline   Reply With Quote
Old 1st March 2005, 08:58 AM   #2
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

In order for IIS (or any web server) to take your script and load it into memory for running on the server, it has to do a number of things.

One of the steps is to process include directives. What this means is, IIS looks for the #inlcude line and then tries to find the file and glue it into place.

Unfortunately, this only works when the #include is in the HTML part of your script.

Example that works:
Code:
<html> <!-- #include file="whatever.inc"--> <body> <% ' some ASP here.. %> </body> </html>

Another example that works:
Code:
<!-- #include virtual="/functions.asp"--> <% ' some ASP code here.. %>

This does not work:
Code:
<% ' some ASP here.. <!-- #include file="whatever.asp"--> ' a little more ASP here.. %>

The problem is that the include directive is present inside your ASP script block!

It's just a rule and I didn't make it! :-)
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with a coding error. bonnro Server-Side Scripting & Databases 1 19th December 2004 09:11 PM
Ride4Pain V2 metguitarist Website Design Reviews 12 22nd July 2004 09:16 PM
404 error page problems sredhead Website Design & Coding 2 27th October 2003 08:38 PM
Ride4Pain metguitarist Website Design Reviews 14 29th April 2003 11:41 AM
Parse error viper Server-Side Scripting & Databases 14 8th April 2003 09:56 AM

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 06:48 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore