473,405 Members | 2,373 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,405 software developers and data experts.

include file error in classic asp file

1
I am trying to include a file in my existing asp file. I am using business vista and I am getting following error

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

For more information about HTTP errors, see Help.


I know this is due to include file because once I take it off it works fine. I removed all the code from my file except couple of variable definition as follows so I don't think there is any problem with the asp file but something to do with iis configuration. I am not sure what properties I need to change in iis
My include statement is

<!-- #include file="shippingcalc2.asp" -->

My shippingcalc2 is

<%

Dim ShipMethod
Dim ShipCost

%>

Any help in this will be very much appreciated. Thanks
Jul 12 '07 #1
1 5405
jhardman
3,406 Expert 2GB
file is supposed to be an absolute path, but you can specify a virtual path as follows:
Expand|Select|Wrap|Line Numbers
  1. <!-- #include virtual="shippingcalc2.asp" -->
let me know if this works.

Jared
Jul 12 '07 #2

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

Similar topics

3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
8
by: Alex | last post by:
Hi, I have noticed that in an aspx page <!--#include virtual="Home.htm"--> acts the same as <!--#include File="Home.htm"--> when I am NOT in the root diectory of the site (I am aware that...
6
by: tshad | last post by:
In my User control, I tried to do this: *************************************************************************** <Script runat="server"> Public ClientName As String = "<!-- #include file =...
2
by: chriso | last post by:
I have a classic asp app which is reaching the end of it's lifetime in so far as being able to maintain it and I want to re-write it in asp.net. A complete re-write, although desireable, is out...
3
by: Andrew Price | last post by:
This is not ASP.NET, but i am having a problem with old school ASP, what i need to do is <% myFileName="incfile.asp" %> <!--#include file="<% myFileName%>"--> However when i use this it...
1
by: teddy b via DotNetMonster.com | last post by:
Hi, Anyone know there is a way to include ASP file in C#? My application coded in C#, then need to include another application coded in classic ASP. Any solution for this? Not planning to...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
3
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that has the "include" code in it which includes another page that displays information. I also have an upload page that allows users to upload a simple html document...
2
by: Andy Fish | last post by:
Hi, I am trying to investigate a problem reported by one of my users who received a "System.Web.HttpException: Request timed out." error trying to upload a large file into my asp.net 2.0...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.