Solved

server-side includes in a managed dedicated server

Posted on 2014-02-02
2
333 Views
Last Modified: 2014-02-02
Hi there,

My (ASP-JVScript) pages worked fine at a shared hosting environment with lines such as:

<!--#include file="directoryAtRoot/myfile.asp" -->  
and
<!--#include file="../directoryAtRoot/myfile.asp" -->

But now, that I want to migrate to a managed dedicated server (at GoDaddy), the first option still works fine, but the second one doesn´t.  (It does not help changing "file" to "virtual", by the way.)

I´ve tried to put the whole path (obtained through Server.MapPath(".")), but it was in vain... please help me on how to proceed!

Thank you,
fskilnik.
0
Comment
Question by:fskilnik
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39827885
You are probably trying to go outside your root directory/parent paths are turned off.

Why not just
<!--#include virtual="/directoryAtRoot/myfile.asp" -->

http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-parent-paths-are-disabled-by-default
0
 

Author Closing Comment

by:fskilnik
ID: 39827905
Perfect, Thanks a lot!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question