We help IT Professionals succeed at work.

Hoist the colors! We’ve added location flags to usernames sitewide, so it's easier to connect with the global community on EE. View My Profile

x

IIS7 - ASP include file not found

4,302 Views
Last Modified: 2012-05-12
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.  
Comment
Watch Question

Big MontyWeb Ninja at large
CERTIFIED EXPERT

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...

Author

Commented:
Thanks,

See syntax used below:

<!--#include file="camsmith.asp" -->
Big MontyWeb Ninja at large
CERTIFIED EXPERT

Commented:
try:

<!--#include file="/easi/cms/camsmith.asp" -->

Author

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.

Author

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
Big MontyWeb Ninja at large
CERTIFIED EXPERT

Commented:
sorry, i thought it was an include virtual statement, try this:


<!--#include file="easi\cms\camsmith.asp" -->

Author

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.




Paul MacDonaldDirector, Information Systems
CERTIFIED EXPERT

Commented:
How about
<!--#include virtual="easi/cms/camsmith.asp"-->

...and how certain are you parent paths are turned on?

Commented:
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
Brad HoweDevOps Manager
Top Expert 2011

Commented:
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
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.