Relative #include files

P

Paul

Hi All

I have recently purchased visual studio 2003 and I am trying to get my web
application working in it. I have created a solution and a VB (ASP Dot Net
Web Application). I have coppied my entire previous web app into the root. I
can get a few asp pages running, but my application makes extensive use of
#include files and references them as follows: -

<!--#include file="../Classes/SomeFile.asp"-->

When running this I get the error (Disallowed Parent Path - The include file
XXX cannot contain '...' to indicate the parent directory.

Does anyone know whey this is happening and how I can fix it.

Many thanks in advance
Joe
 
J

John Timney \(ASP.NET MVP\)

Get rid of your includes and learn about user controls and dll's, which is
the .net replacement for them and is a much more object oriented approach to
development for asp.net.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top