Solved

server-side includes in a managed dedicated server

Posted on 2014-02-02
2
339 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Random port 80 connection refuse flapping 14 64
send email part1 9 53
MS SQL and inserting dates into tables using stored procedures 6 45
SSL on Apache 2... config file 1 33
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/…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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