473,411 Members | 1,894 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,411 software developers and data experts.

Include virtual

Hejsa,
Har "arvet" et website jeg skal have "oversat" til .NET

I øjeblikket er det "almindelige" .asp sider, som jeg ikke har prøvet før.

I c:\test\kims\www\eval\default.asp er følgende linier:
<!--#include file="Connections/Conneval.asp" -->
..
..
..
<!--#include virtual="eval\uTop.asp" -->
..
..

Den kommer så med;
Inkluderingsfilen 'eval\uTop.asp' blev ikke fundet.
/evaluator/eval/Default.asp, line 49

Der findes en fil der hedder
c:\test\kims\www\eval\uTop.asp
Har jeg oprettet min Virtuelle mappe forkert i IIS ?

mvh
/jim
Jul 20 '05 #1
3 2602
<!--#include virtual="\eval\uTop.asp" -->

I think is your answer.

As it's virtual you need to put in \ (i.e from the root of the site).

Stu

"Jim Andersen" <jimVÆÆK@officeconsult.dk> wrote in message
news:bq**********@sunsite.dk...
Hejsa,
Har "arvet" et website jeg skal have "oversat" til .NET

I øjeblikket er det "almindelige" .asp sider, som jeg ikke har prøvet før.

I c:\test\kims\www\eval\default.asp er følgende linier:
<!--#include file="Connections/Conneval.asp" -->
.
.
.
<!--#include virtual="eval\uTop.asp" -->
.
.

Den kommer så med;
Inkluderingsfilen 'eval\uTop.asp' blev ikke fundet.
/evaluator/eval/Default.asp, line 49

Der findes en fil der hedder
c:\test\kims\www\eval\uTop.asp
Har jeg oprettet min Virtuelle mappe forkert i IIS ?

mvh
/jim

Jul 20 '05 #2
Oh Damn, did I write it in Danish ? :-)

I'll just translate.....

I have "inherited" a (to my knowledge) working application and am going to
convert it to .NET, as I have never written .asp applications.

But you are saying that this could never have worked, without the "\" in
front ?

The examples I've seen suggests you are right....

/jim
Stuart Palmer wrote:
<!--#include virtual="\eval\uTop.asp" -->

I think is your answer.

As it's virtual you need to put in \ (i.e from the root of the site).

Stu

"Jim Andersen" <jimVÆÆK@officeconsult.dk> wrote in message
news:bq**********@sunsite.dk...
Hejsa,
Har "arvet" et website jeg skal have "oversat" til .NET

I øjeblikket er det "almindelige" .asp sider, som jeg ikke har
prøvet før.

I c:\test\kims\www\eval\default.asp er følgende linier:
<!--#include file="Connections/Conneval.asp" -->
.
.
.
<!--#include virtual="eval\uTop.asp" -->
.
.

Den kommer så med;
Inkluderingsfilen 'eval\uTop.asp' blev ikke fundet.
/evaluator/eval/Default.asp, line 49

Der findes en fil der hedder
c:\test\kims\www\eval\uTop.asp
Har jeg oprettet min Virtuelle mappe forkert i IIS ?

mvh
/jim

Jul 20 '05 #3
Hello

Just to clear this up

#include file means you put in a relative path

#include virtual requires the path from the root of the application

e.g.
using

www.site.com/area/file.asp

To include a file which is in

www.site.com/area/includes/

either
<!--#include file="includes/incfile.asp"-->
or
<!--#include virtual="/area/includes/incfile.asp"-->
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
3
by: Zenobia | last post by:
I copy an application to wwwroot: wwwroot +--- myApp +--- common | +--- images | default.asp global.asa
9
by: JR | last post by:
Hi, I'm migrating my website to an IIS 6.0 server and all the asp pages work fine except for the ones that reference include files, even though I have "Enable parent paths" enabled in the...
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...
2
by: Kraai | last post by:
in normal asp , and even php i could use the <!--#include file="login.aspx" --> or <!--#include virtual="login.aspx" --> to include pages in my main page without using frames! when i try...
2
by: WisTex | last post by:
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...
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" --> <!--...
6
by: Jordi | last post by:
I'm having a problem which I think has to do with the circular use of inlcuding header files. The short version of my code would look a bit like this, I think: GameEngine.h: #ifndef GAME_ENGINE...
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
5
by: rockdale | last post by:
Hi, all: Hope somebody can solve this problem for me. We are migrating 3 asp website into IIS 6.0 on a server 2003. we do not want to create 3 website since we do not want to acquire different...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
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...
0
Oralloy
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,...
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,...
0
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...

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.