Solved

server-side includes in a managed dedicated server

Posted on 2014-02-02
2
331 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
Comment Utility
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
Comment Utility
Perfect, Thanks a lot!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now