Results 1 to 5 of 5

Thread: Simple asp page works locally but not from server

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Simple asp page works locally but not from server

    What am I missing here? Here is what I have. A very simple asp page (default.asp) that was created using Visual Interdev.
    VB Code:
    1. <%@ Language=VBScript %>
    2. <!-- #INCLUDE FILE="style.asp" -->
    3.  
    4. <HTML>
    5. <HEAD>
    6. <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    7. <TITLE>Test</TITLE>
    8. </HEAD>
    9. <BODY>
    10. <%
    11. Response.Write "<h1>"
    12. Response.Write "ASP TEST"
    13. Response.Write "</h1>"
    14. %>
    15.  
    16. </BODY>
    17. </HTML>
    As you can see, basically I'm loading an include file (style.asp). This asp page loads a style sheet using this code.
    VB Code:
    1. <LINK REL="stylesheet" TYPE="text/css" HREF="defaultstyle.css">
    Right now all I have in the style sheet is an image for the background and some formatting for the <h1> tag.

    After that I'm simply trying to print a couple words.

    This works fine locally, but if I try to move it to the server and test it, it just returns a blank page. It appears that my include file is not being read and anything in the script tags are being ignored.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    For security and performance reason some server disables the use of Include file. So check if its the case. I tried to find the settings in IIS but couldnt find it. If its your own server then search google you will probably find it.

    Hope this helps.

    Danial
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    I'm not sure that is it. I just signed up for web hosting and while that say they support asp, I'm not sure they signed me up for the right account.

    If I place a response.redirect in my page somewhere it seems to be ignored. Request.Servervariables is returning nothing. Unless I'm missing something simple here, I think there is a problem on there end.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I'm assuming you'll be contacting them and asking them.

    Meanwhile, try to upload a page named abc.php, and place this in there:

    PHP Code:
    <? phpinfo(); ?>
    If it works, then there is a possibility that they've put you in PHP hosting, but doesn't exclude IIS completely because IIS can support PHP as well.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    They just got back to me and they did put me on a linux server instead of a windows server. Things are better now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width