Solved

Calssic ASP

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now