By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

Relative #include files

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Paul" <za********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.