Relative to root not working

T

tshad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top