Solved

server-side includes in a managed dedicated server

Posted on 2014-02-02
2
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

630 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