Publishing ASP's from Access works, but can't surf it
Results 1 to 3 of 3

Thread: Publishing ASP's from Access works, but can't surf it

  1. #1
    Registered User
    Join Date
    Mar 2001
    Location
    Mississauga Ont Canada
    Posts
    134

    Question Publishing ASP's from Access works, but can't surf it

    Alright ... I'm on the verge of throwing in the towel.

    Here's the setup:
    Windows 2000 Professional with IIS installed.
    ODBC User DSN referencing the database has been created.

    I exported a table as an asp file to the wwwroot directory and If i just open the page with my browser it works fine. If I try to browse to my computer using http://computername, it gives the following error:

    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services

    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    /aspClients.asp, line 16

    the coding from lines 12-18 are:

    If IsObject(Session("test_conn")) Then
    Set conn = Session("test_conn")
    Else
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.open "test","",""
    Set Session("test_conn") = conn
    End If

    What the heck am I doing wrong here? I know it has to be something simple.
    Veni, vidi, quiesco sum.
    "We came, We saw, We lazed around"

  2. #2
    Registered User
    Join Date
    Mar 2001
    Location
    Mississauga Ont Canada
    Posts
    134

    Post

    Wow ... not much action here ... only 3 viewings and all by myself.

    Found the solution to my problem.

    After creating a systemDSN of the same name to ensure odbc integrety with the db. and deleting the userDSN, what I didn't realize is that all details that I had specified had been deleted!
    Veni, vidi, quiesco sum.
    "We came, We saw, We lazed around"

  3. #3
    Registered User
    Join Date
    Jan 2001
    Location
    Scotland
    Posts
    468

    Post

    Well done!!

    As an afterthought, many .asp problems on IIS can be caused by User permissions being incorrectly set. You should ensure (you probably have!) that the account you use to access the server carries suitable restrictions, but allows scripting access to the folders/files you need. I don't know if you use Front Page too, but this can complicate matters.

    You were right to check the bb engine connection through ODBC, I just get concerned when seeing this type of problem that it is not in fact a permissions problem.

    But, as I said, WELL DONE - sorry you didn't get a reply!

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
  •