Solved

Calssic ASP

Posted on 2014-09-25
5
144 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

749 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