#1
  1. No Profile Picture
    Registered User

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    500 Internal Server Error


    Hi,

    I uploaded my website on a web hosting and after uploading it's displaying the error message 500 Internal Server Error. On my computer running windows xp and ii2 the pages are working and the ms access database. This is the portion of the asp code:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file="Connections/smbd_connection.asp" -->
    <%
    Dim Recordset1
    Dim Recordset1_numRows

    Set Recordset1 = Server.CreateObject("ADODB.Recordset")
    Recordset1.ActiveConnection = MM_smbd_connection_STRING
    Recordset1.Source = "SELECT * FROM d001 WHERE category = 'Dog Accessories' ORDER BY brand"
    Recordset1.CursorType = 0
    Recordset1.CursorLocation = 2
    Recordset1.LockType = 1
    Recordset1.Open()

    Recordset1_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index

    Repeat1__numRows = 10
    Repeat1__index = 0
    Recordset1_numRows = Recordset1_numRows + Repeat1__numRows


    thanks,

    classic_asp
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    May 2009
    Location
    Somerset, UK
    Posts
    135
    Rep Power
    92
    If you switch off the 'friendly' error messages you may see which line the error is on which will help you debug - see this link: How do I fix "Internal Server Error 500" when running my ASP pages?

    My guess on the error is probably caused when connecting to the Access database. Either the path or your permissions.
    Regards

    JD

    Software matters - Bespoke Access Database Design and Development

Similar Threads

  1. Replies: 0
    Last Post: June 24th, 2011, 07:54 AM
  2. IIS Internal Server 500 Error
    By harooniq in forum Microsoft IIS
    Replies: 9
    Last Post: October 25th, 2007, 04:06 AM
  3. Replies: 2
    Last Post: November 2nd, 2004, 02:42 AM
  4. Internal server error 500
    By vic2000 in forum Microsoft SQL Server
    Replies: 4
    Last Post: September 20th, 2003, 10:52 AM
  5. WAP and ASP(internal server error 500)
    By Steve Schofield in forum ASP Development
    Replies: 0
    Last Post: February 16th, 2001, 09:07 AM

IMN logo majestic logo threadwatch logo seochat tools logo