Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calssic ASP

Posted on 2014-09-25
5
Medium Priority
?
150 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 …
The viewer will learn how to implement Singleton Design Pattern in Java.
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.
Suggested Courses

886 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