Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Relative to root not working

Reply
Thread Tools

Relative to root not working

 
 
tshad
Guest
Posts: n/a
 
      03-01-2005
I am trying to change my paths to be relative to the root page and am
getting errors doing it.

With the following:

<%@ Page Language="VB" trace="false" debug="true" AutoEventWireup="true"
ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="fts" TAgName="header"
src="/includes/defaultHeaders.ascx" %>
<%@ Register TagPrefix="fts" TAgName="footer"
src="/includes/defaultFooters.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<!-- #include file="/includes/slidemenus.inc" -->
<html>

I get the error:

************************************************** **************************************
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The virtual path '/includes/defaultHeaders.ascx' maps
to another application, which is not allowed.

Source Error:

Line 1: <%@ Page Language="VB" trace="false" debug="true"
AutoEventWireup="true" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
Line 2: <%@ Register TagPrefix="fts" TAgName="header"
src="/includes/defaultHeaders.ascx" %>
Line 3: <%@ Register TagPrefix="fts" TAgName="footer"
src="/includes/defaultFooters.ascx" %>
Line 4: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

************************************************** *************************************

Why does it say I am going to another application?

My root is development (http://10.0.0.25/development/includes).

Isn't src="/includes/defaultHeaders.ascx" supposed to say look in
development/includes for the ascs file?

It used to say src="../includes/defaultHeaders.ascx" which worked fine. I
am trying to get around relative addressing.

Thanks,

Tom


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      03-01-2005
tshad wrote:

> My root is development (http://10.0.0.25/development/includes).


No, your root is http://10.0.0.25/. That is what root means.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
site-root relative redirects epigram ASP .Net 1 08-03-2005 12:00 PM
ASP.NET and Root relative paths. Am I crazy? tsteinke@gmail.com ASP .Net 2 06-29-2005 09:01 PM
Root Relative Path Injected as String Variable Jordan Richard ASP .Net 2 05-02-2005 05:40 PM
Specifying Root Relative Path in User Control Guadala Harry ASP .Net 1 04-27-2005 05:01 PM
Root Relative Path Win, Pats ASP .Net 4 02-10-2005 05:02 PM



Advertisments