Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calssic ASP

Posted on 2014-09-25
5
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

705 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