Problem with Include in Asp Page. Need help to configure IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sotero
    New Member
    • Nov 2006
    • 2

    Problem with Include in Asp Page. Need help to configure IIS

    I have this include in an asp page that is causing an error message

    <!--#include file="Connectio ns/SQLConnection.a sp" -->

    It works fine when I use http://localhost/mypage.asp

    But when I upload it to server I got this error:
    ----------------------
    Internal Server Error
    The server encountered an internal error or misconfiguratio n and was unable to complete your request.
    ----------------------

    I am sure that there is no problem in my asp pages because this website was running in another server and it also works fine in localhost.
    All pages are in this new server. I have double checked.

    I think the problem is in the IIS configuration. It´s a new server and I have just configured this web server. I know the problem is this include because I removed it and the page loaded normally but when I put this include back I got the error. Is there any special configuration in the internet information service I have to enable??
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Originally posted by sotero
    I have this include in an asp page that is causing an error message

    <!--#include file="Connectio ns/SQLConnection.a sp" -->

    It works fine when I use http://localhost/mypage.asp

    But when I upload it to server I got this error:
    ----------------------
    Internal Server Error
    The server encountered an internal error or misconfiguratio n and was unable to complete your request.
    ----------------------

    I am sure that there is no problem in my asp pages because this website was running in another server and it also works fine in localhost.
    All pages are in this new server. I have double checked.

    I think the problem is in the IIS configuration. It´s a new server and I have just configured this web server. I know the problem is this include because I removed it and the page loaded normally but when I put this include back I got the error. Is there any special configuration in the internet information service I have to enable??

    Hi there,

    Do you receive the above mentioned error message when uploading all files or this particular file only? Please provide more information. Take care.

    Comment

    • gateshosting
      New Member
      • Dec 2006
      • 25

      #3
      Is it due to the location of the file? How about using virtual='/root/blahblah/file.asp' instead?

      Michael C. Gates
      Last edited by MMcCarthy; Feb 5 '07, 03:17 AM. Reason: removing website address

      Comment

      Working...