IIS7 - ASP include file not found

Dear Experts,

I am using IIS7 and classic ASP.  

My problem is that I am receiving the error below at the URL http://democms.easiproperty.com/easi/cms/


'Active Server Pages error 'ASP 0126'

Include file not found

/easi/cms/index.asp, line 3

The include file 'camsmith.asp' was not found.'


The include file is definately there and in the correct place and I have also set up the application pool to allow 32 bit etc etc.

Can anyone suggest as to what may be the problem.  
grantballantyneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
can you browse to the actual file specified in the include syntax? maybe seeing the syntax you used for the include statement would shed some light...
0
grantballantyneAuthor Commented:
Thanks,

See syntax used below:

<!--#include file="camsmith.asp" -->
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
try:

<!--#include file="/easi/cms/camsmith.asp" -->
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

grantballantyneAuthor Commented:
Thanks again

I tried the suggestion but got the error below:

Active Server Pages error 'ASP 0130'

Invalid File attribute

/easi/cms/index.asp, line 3

File attribute '/easi/cms/camsmith.asp' cannot start with forward slash or back slash.
0
grantballantyneAuthor Commented:
Eval,

Thanks for your suggestion - however I had already enabled parent paths.

I have many websites on this server that are developed in Classic ASP which all function as expected but I cant seem to work out the issue here.

Grant
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
sorry, i thought it was an include virtual statement, try this:


<!--#include file="easi\cms\camsmith.asp" -->
0
grantballantyneAuthor Commented:
Thanks

I did also try that and still getting error:

Active Server Pages error 'ASP 0126'

Include file not found

/easi/cms/index.asp, line 3

The include file 'easi/cms/camsmith.asp' was not found.




0
Paul MacDonaldDirector, Information SystemsCommented:
How about
<!--#include virtual="easi/cms/camsmith.asp"-->

...and how certain are you parent paths are turned on?
0
EyalCommented:
when browsing to http://democms.easiproperty.com/easi/cms/camsmith.asp
we get error
Active Server Pages error 'ASP 0250'

Invalid Default Code Page


/easi/cms/camsmith.asp

The default code page specified for this application is invalid.

maybe this is you direction
0
Brad HoweDevOps ManagerCommented:
That file was saved with an incorrect coding format such as UTF-8 or Ansi, Westin, unicode etc...
The quick fix, Open notepad, create a new file and cut-paste the contents into the new file.

As well, make sure you have parent paths enables if you are use the ../ approach to include files.

Cheers,
Hades666
0
worthyking1Commented:
The include "file" keyword cannot be used with a beginning slash because it's path begins with the directory of the page it's on, so if you are including a file that is outside the directory of the current page then you need to use the "virtual" keyword, which allows you to define your file path starting from the web root ie. beginning with a slash.

So, if you include file is in the same directory, or a directory below, the current page then you would use the file keyword, for example

<!--#include file ="filename.asp"-->  or <!--#include file ="folder/filename.asp"-->

If your include file is outside the directory of the current page then you would use the virtual keyword, such as:

<!--#include virtual="/dir1/dir1/filename.asp"-->
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.