Solved

Calssic ASP

Posted on 2014-09-25
5
140 Views
Last Modified: 2014-09-26
I have old application in ASP, it's was working fine.
The host company upgrade the IIS to another version higher than 5.0. Now is giving error and not working what is the best script to write.

I am using
<%@ LANGUAGE = "VBScript" %>
<%

  Dim MyConnection
  Dim MyConnectionString
  Dim MySQLStatement

  MyConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=C:\inetpub\wwwroot\human\db\pre.mdb"



  MySQLStatement = "select * from header"

  Set MyConnection = Server.CreateObject("ADODB.Connection")

  MyConnection.Open MyConnectionString
  MyConnection.Execute(MySQLStatement)


link=rs("link")
active=rs("active")
visited=rs("visited")
  MyConnection.Close()

  Response.Write("Record inserted successfully" & " " & link & "  " & active & "  " & visited)

  Set MyConnection = Nothing
%>

The above is just for test the connection but not work  and provide the below error

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.



Can you help me.?
0
Comment
Question by:abdallah1973
  • 3
  • 2
5 Comments
 

Author Comment

by:abdallah1973
ID: 40344297
In addition, if I run the site its give error with
Microsoft JET Database Engine error '80004005'

Unspecified error
 
and line where code
  MyConnection.Open MyConnectionString
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 40345206
The error means the site doesn't have permission to open the database.  You will need to make sure the web user has access to the db.
0
 

Author Comment

by:abdallah1973
ID: 40345222
I tested locally with IIS 7 and provide me with error

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.


How I can provide enough permission to make we site work smoothly?
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 40345251
You will need to enable more error details to see what the errors are.  See here for some tips of showing the error message in the browser:
http://www.chestysoft.com/asp-error-messages.asp

Rob.
0
 

Author Closing Comment

by:abdallah1973
ID: 40345802
Good solution
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question