include not found??

A

Arthur

Hi to all,

Got a little problem here,
I created an "include" file an published it together with the file(s)
that are going to 'use' this include.
However when one or any of these pages (with the "include-virtual"
statement)
"calls" the include file, the browser gives an error with the description
that the
include file can not be found. I've checked it many times but it is
available on
both the local-disk as well as on the server after publishing it.
Any body got any idea what goes wrong?
I sort of created an .asp file with an DSN-less connection to my database
and need to include it when other pages need the connection.

Thanks in advance for any help and or Idea's.

Arthur
 
J

Jon Spivey

Hi Arthur,

Unless you're developing on a server OS it's hard to use include virtual as
the path will be different on your production and dev machines. Say you're
working on http://localhost/yourweb and you have an include virtual pointing
to /somefile.asp the include will be looked for
http://localhost/somefile.asp which is what I'd guess is happening with you.
Try changing you include file and you should be back in business.
 
A

Arthur

tnkx, i'll try that. hopefully it works.


Jon Spivey said:
Hi Arthur,

Unless you're developing on a server OS it's hard to use include virtual
as the path will be different on your production and dev machines. Say
you're working on http://localhost/yourweb and you have an include virtual
pointing to /somefile.asp the include will be looked for
http://localhost/somefile.asp which is what I'd guess is happening with
you. Try changing you include file and you should be back in business.
 

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