Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Server Issue... I think??!

    First problem...
    My default.asp will not load. It shows the directory listing instead.

    Second problem...
    When I do load the default.asp page I get this error message:

    The Include file '../includes/inc_config.asp' cannot contain '..' to indicate the parent directory.
    /home/default.asp, line 1

    This is the first line on my default.asp page:

    <!--#include file="../includes/inc_config.asp" -->

  • #2
    New Coder
    Join Date
    Jul 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Database Problem

    I fixed the server problem with this:
    <!--#include virtual ="/includes/inc_config.asp" -->

    Now I get this error message:

    ADODB.Recordset.1 (0x80004005)
    SQLState: IM002 Native Error Code: 0 [DataDirect][ODBC lib] Data source name not found and no default driver specified
    /includes/inc_config.asp, line 33

    28. <%
    29. Dim rsConfig
    30. Dim rsConfig_numRows
    31.
    32. Set rsConfig = Server.CreateObject("ADODB.Recordset")
    33. rsConfig.ActiveConnection = MM_connDUportal_STRING
    34. rsConfig.Source = "SELECT * FROM CONFIGURATION"
    35. rsConfig.CursorType = 0
    36. rsConfig.CursorLocation = 2
    37. rsConfig.LockType = 1
    38. rsConfig.Open()

  • #3
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Where are you setting the value of MM_connDUportal_STRING? And more importantly, what are you setting it to?

    ETA: he's setting it here
    Last edited by Spudhead; 01-19-2007 at 12:22 PM.


  •  

    Posting Permissions

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