Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > BOOK: Beginning ASP 3.0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 7th, 2012, 04:08 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 14 Code page 620. Please help.

Can you please help me with the following ASP error:

Error Type:
ADODB.Record (0x800A0E7A)
Provider cannot be found. It may not be properly installed.
/begasp/recordmove.asp, line 25

My System: Windows XP Professional SP2 and IIS 5.1

This is the full asp code:
Code:
<%option explicit %>
<!-- metadata type="typelib"
FILE="c:\program files\common files\system\ado\msado15.dll" -->
<html>
<head>
<title>Retrieving semi-structured Data</title>
</head>
<body>
<% 
if request.form("task")="" then %>
<form name=movieinfo action="recordmove.asp" method="post">
what do you want to do? <br><br>
<input type="radio" name="task" value="copy" checked>
Copy Mytext.txt to a new file called mytext2.txt</input><br>
<input type="radio" name="task" value="move">
move Mytext.txt to a new file called mytext2.txt</input><br>
<input type="radio" name="task" value="delete">
delete Mytext.txt from the begasp file</input><br>
<input type=submit value="go">  
</form><%
else
dim objrecord
set objrecord = server.CreateObject("adodb.record")
objrecord.Mode=adModeReadWrite
objrecord.open "mytext.txt","url=http://sony415s/begasp"
if request.form("task")= "copy" then
objrecord.copyrecord "", "http://sony415s/testfolder/mytext2.txt",,,adcopyoverwrite
response.write "mytext.txt file copied to a new file called mytext2.txt"
elseif request.form("task")= "move" then
objrecord.moverecord "", "http://sony415s/testfolder/mytext2.txt",,,adcopyoverwrite
response.write "mytext.txt file moved to a new file called mytext2.txt"
elseif request.form("task")="delete" then
objrecord.deleterecord
response.write "mytext.txt has been deleted"
end if
objrecord.close
set objrecord = nothing
end if
%>
</body>
</html>
.

The error on line number 25 contains the following code:

objrecord.open "mytext.txt","url=http://sony415s/begasp"

The syntax of the code is correct because when I add IUSR_machinename to the Administrators group the code works and runs everything with anonymous user Iusr_machinename and it copies the record from the begasp virtual directory to the testfolder virtual directory.
I have given Iusr_machinename ntfs access to both folders by setting read permission for BEGASP physical path which is c:\inetpub\wwwroot\begaspfiles and read and write permission for the TESTFOLDER physical path which is c:\inetpub\wwwroot\testfolder.
Also Iusr has read permissions to the windows,system,system32, inetsrv,ado,msado15.dll directories and file. I have checked local security policy to make sure iusr_machinename can log on locally.

I think the asp code does not work because the Iusr_machinename is missing a permission somewhere to access the http://sony415s/begasp local server.

Can someone please help me solve this.
  #2 (permalink)  
Old January 21st, 2014, 06:20 AM
somiya5454
Guest
 
Posts: n/a
Default

nice information mike............
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 Code page 620, help needed! Safi BOOK: Beginning ASP 3.0 3 December 8th, 2010 12:43 PM
Chapter 1 page 14 kermit1965 BOOK: Professional ASP.NET MVC 2 6 October 12th, 2010 11:10 AM
Chapter 14 Code Error? pherank BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 4th, 2008 10:05 PM
Problem with code on Chapter 14 aargyri BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 June 6th, 2006 04:37 PM



All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.