My *.asp pages show code when I view it in browser after uploading it to web server.

Discussion in 'Site & Server Administration' started by FireFlywins, Dec 6, 2008.

  1. #1
    Hi,

    Someone please help me. As I said, my *.asp pages show code when I view it in browser after uploading it to web server.

    The problem is simple. Here is an asp page


    http://aertechnologies.com/affiliate_RealCash.asp

    All the asp pages are running very well in the local server but when I loaded them onto the web server they are showing the code instead of the user interface.


    I just need to run this page. I make it more clear. It is not showing any error. It is showing code instead of user interface.

    Please help me.

    Thanks
     
    FireFlywins, Dec 6, 2008 IP
  2. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #2
    well, what software is the server running?

    As far as I understand it, ASP is a microsoft thing, and your server is likely running linux. Check into your server and your software...
     
    innovati, Dec 6, 2008 IP
  3. FireFlywins

    FireFlywins Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot Innovati,

    I don't know what software is running on the server. I need to ask that from the person hosting my website. I will check that from him and tell you.

    Could that there be any other reason for this?


    Thanks again.
     
    FireFlywins, Dec 6, 2008 IP
  4. FireFlywins

    FireFlywins Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4


    I don't know what software is running on the server. I need to ask that from the person hosting my website. I will check that from him and tell you.

    Could there be any other reason for this?


    Thanks again.
     
    FireFlywins, Dec 6, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Here is your server response header:
    Date: Sun, 07 Dec 2008 05:06:01 GMT
    Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
    Last-Modified: Sat, 06 Dec 2008 10:33:32 GMT
    Etag: "ec74184-6193-493a54fc"
    Accept-Ranges: bytes
    Content-Length: 24979
    Content-Type: text/plain
    
    200 OK
    Code (markup):
    Your server is Apache running in a Unix environment. It obviously does not grok what to do with a .asp extension, and delivers as the default plain text.

    It looks like you wrote your backend in the wrong language.

    cheers,

    gary
     
    kk5st, Dec 6, 2008 IP
  6. FireFlywins

    FireFlywins Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the help. This is what I understand from your answer. Please tell me if I am right.

    I used Microsoft Access at the back end with Microsoft IIS installed in my computer. So, it was working very well till the time I was using localhost. When I shifted to remote web server (it is with the person from whom I bought the domain name and who is hosting the website), it is not working properly because it is Apache running in a Unix environment. It does not support Microsoft Access or *.asp pages.

    So, the solution for this would be install Microsoft IIS in the web server or some other way that would be compatible with asp.

    Please tell me if I am right.

    Thanks for your help again.

    FireFly



     
    FireFlywins, Dec 6, 2008 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    See http://httpd.apache.org/docs/1.3/misc/FAQ.html#asp. Discuss your needs with your hosting company.

    If you really must use a non-portable server side language, your best bet is to change hosts to one that uses Windows/IIS, or ask your present host to move you to a Microsoft environment.

    Ideally, you would rewrite the site in PHP, Perl or Python, all portable languages, and likewise use a RDBMS that is also portable, e.g. MySQL, PostgreSQL, or Oracle. I understand that this is not always feasible.

    cheers,

    gary
     
    kk5st, Dec 7, 2008 IP