Avatar of J-DRouse
 asked on

Include File Workd, Include Virtual does not

The following code works on my hosting server but fails on the localhost 5.1 under IIS 5.1 while testing using Dreamweaver.
<!--#include virtual="/Connections/cnBoard.asp" -->

The following code works on my localhost IIS 5.1 using the same Dreamweaver web site.
<!--#include file="Connections/cnBoard.asp" -->

Is the problem with my IIS setup or in Dreamweaver Site Manager
Web Languages and StandardsStorage SoftwareWeb Servers

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks for the tips.  I created a Connections folder under the Inetpub/wwwroot and placed a copy of all my ODBC connections.  Every page that has a <--#include virtual="/Connection/xxxx.asp"-->  statement works.

What I don't understand is how then does the same statement work on the host web site since I place the Connections folder under the web site's name.  Does the Web Hosting IIS software treat the root directory differently that the Inetpub/wwwroot?

Also, I would assume a lot of web developers would experience this same thing.  Therefore, I would think the solution would have been under the Microsoft's and Macromedia's FAQ section.  I searched for days trying to find this solution.

Web hosting probably made your website as root so it all worked. On your local system you must have made a virtual folder as you might have more applications. That is why it did not work. If you want you can also create a new website on your own machine and then it would work there too.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.