SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Orange County
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! Don't know what's wrong

    Hello everyone,

    I'm currently facing a problem that I've never encountered before.

    I have an ASP program that runs on my local desktop with IIS 5.1 and it runs fine on that environment. But when I uploaded it onto my server and click on the default.asp page, all that comes up is a window with the actual text of the sourcecode itself. It's as if the server does not support ASP at all. The oddity is that when I remove the comments the "single quote" lines ( '***)from code, the graphics show up, but the ASP properties show up. Does anyone have any idea what may be happening? Is there something in my code that's not right?

    Thanks everyone!

    Developing enviromnet:
    Server: Windows NT 4.0 with IIS 5.1
    -Other ASP applications are running fine on the folders, so I'm assuming that this server is installed with IIS

    Laptop: Windows XP SP1 with IIS 5.1
    -Everything works great on my laptop

    Kenny

    Sample of my code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    '***********************************************************************
    ' System : Help Desk
    ' Help Desk
    '
    ' install.asp : This file is the installation page for the application
    '***********************************************************************
    %>
    <html>
    <head>
    <title>Help Desk - Installer</title>
    <link rel="STYLESHEET" type="text/css" href="Kenny.css">
    <script Language="JavaScript"><!--
    function Form_Validator(Loginform)
    {

    if (Loginform.username.value == "")
    {
    alert("Please enter a value for the \"username\" field.");
    Loginform.username.focus();
    return (false);
    }

    if (Loginform.password.value == "")
    {
    alert("Please enter a value for the \"password\" field.");
    Loginform.password.focus();
    return (false);
    }

    var radio_choice = false;
    for (counter = 0; counter < Loginform.dbtype.length; counter++)
    {
    if (Loginform.dbtype[counter].checked)
    radio_choice = true;
    }
    if (!radio_choice)
    {
    alert("Please select a \"database\" type.");
    return (false);
    }
    return (true);
    }
    //--></script>
    </head>

    <body>
    <H2>eNET - Install Settings</H2>
    <BR><BR>

    <form action="installroutine.asp" method="post" onsubmit="return Form_Validator(this)">
    <table align="center" cellspacing="2" cellpadding="2" border="0">
    <tr>
    <td>Admin User Name<strong><font color="#FF0000"><span style="font-weight: 400">_</span></font></strong></td>
    <td><input type="text" name="username" size="30"></td>
    </tr>
    <tr>
    <td>Admin Password<strong><font color="#FF0000"><span style="font-weight: 400">_</span></font></strong></td>
    <td><input type="password" name="password" size="30"></td>
    </tr>
    <tr>
    <td>Database Type<strong><font color="#FF0000"><span style="font-weight: 400">_</span></font></strong></td>
    <td><input type="radio" name="dbtype" value="MS Access">MS Access<BR>
    <input type="radio" name="dbtype" value="SQL Server">SQL Server</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td><input type="submit" name="Submit" value=" Submit"></td>
    <td></td>
    </tr>
    </table></form>
    <p align="center">Kenny's Program
    <br>Copyright 2004<br>
    <br><b>eNET<font color="#FF0000">_</font></b> <br>
    <a href="mailto:kenny_hy@yahoo.com?subject=Help Question">Need help?</a></p>


    </body>
    </html>

  2. #2
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi
    1. did you try putting the asp tag at the top of your code?
    <%@LANGUAGE="VBSCRIPT" %>

    2. is the default document an asp extension ?

    3. Check the IIS properties and see if the default documents are what your homepage specifies ?

    hope this helps

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Orange County
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Nope, tried it.

    Thanks for the advice, but it doesn't work either.

    I'm getting pretty sad about this.

  4. #4
    SitePoint Addict sinapra's Avatar
    Join Date
    Sep 2004
    Location
    secunderabad
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first of all, there is nothing wrong with the code, it shouldnot display as it is when you try to run it in browser. So check if IIS is properly installed, then check where have you uploaded the file, I mean the real path, is it in wwwroot folder with a subdirectory for your application, if that is so, have you created an virtual directory with an alias and remaining stuff which are needed before testing an application on server. if everything is alright, the ASP part wont be displayed at all.
    Regards

    Its Great to work and Be Merry!!!!!!!!

  5. #5
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What path are you typing into the browser?

    http://localhost/yourdirectory/yourfile.asp
    or
    c:\inetpub\wwwroot\yourdirectory\yourfile.asp


    Use the first.


Bookmarks

Posting Permissions

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