Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

server-side includes in a managed dedicated server

Posted on 2014-02-02
2
Medium Priority
?
351 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 2000 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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/…
What You Need to Know when Searching for a Webhost Provider
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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