Unable to get EasyZip to Do It"s Thing


Unable to get EasyZip to Do It"s Thing

Postby afreeman on Wed Dec 10, 2003 11:22 pm

Got the following errors

aspEasyZIP 3.01 (20/07/03) DEBUG: DEBUGGING ON
aspEasyZIP 3.01 (20/07/03) DEBUG: Setting FileName to C:Inetpubwebsitessbas.nethtmlabstractsarchive.zip
aspEasyZIP 3.01 (20/07/03) DEBUG: ArgsClear
aspEasyZIP 3.01 (20/07/03) DEBUG: ArgsClear

aspEasyZIP 3.01 (20/07/03) DEBUG: ArgsAdd(C:Inetpubwebsitessbas.nethtmlabstractsabsfilesABS-ch83BnmAYU.wpd)

aspEasyZIP 3.01 (20/07/03) DEBUG: ZIP [C:Inetpubwebsitessbas.nethtmlabstractsarchive.zip]
aspEasyZIP 3.01 (20/07/03) DLL DEBUG: File specification "C:Inetpubwebsitessbas.nethtmlabstractsabsfilesABS-ch83BnmAYU.wpd" skipped (767)
aspEasyZIP 3.01 (20/07/03) DLL DEBUG: Missing or empty zip file (852237)
Error: Missing or empty zip file


--

The permissions are such that the Anon user has nearly full access to the abstracts directory (where the code lives), the Install directory in Program Files, and the Temp directory, and yet it doesn"t seem to be working.

Any ideas?
afreeman
 
Posts: 3
Joined: Wed Dec 10, 2003 10:57 pm
Location: USA

Postby John on Wed Dec 10, 2003 11:26 pm

Can you post the code?, seems that the C:Inetpubwebsitessbas.nethtmlabstractsabsfilesABS-ch83BnmAYU.wpd is not accesible. You can convert the code to VBS to verify that there is no problems with security.
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby afreeman on Thu Dec 11, 2003 7:06 pm

What do you mean "convert the code to VBS"? (VB is not my primary language - I'm just the guy stuck with it for now).

Relevant (hopefully) portion of code posted.

<%
dim ZIP

' Create the object
set ZIP = server.createobject("aspZip.EasyZIP")
ZIP.Debug=True

' This does the work
ZIP.ZipFileName = Server.MapPath ("archive.zip")
ZIP.ArgsClear
%>


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
<%
While ((Repeat1__numRows <> 0) AND (NOT rsArchives.EOF))
%>
<div>
<!-- Adding <%=(rsArchives.Fields.Item("absTitle").Value)%> -->
<% ZIP.ArgsAdd( Server.MapPath ("./absfiles/" & rsArchives.Fields.Item("absFilename").Value) ) %>
</div>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsArchives.MoveNext()
Wend
%>
<p>
<%
' create the zip file
ZIP.Zip
' write out an error message
if ZIP.Error <> 0 then
response.Write "Error: " & ZIP.LastMessage
else
response.Write ZIP.SuccessCnt & " files added to zip file"
end if
%>
</p>
<p>Right-Click to Save: <a href="archive.zip">archive.zip</a></p>
</body>
</html>
<%
Set ZIP = nothing
%>
afreeman
 
Posts: 3
Joined: Wed Dec 10, 2003 10:57 pm
Location: USA

Postby John on Thu Dec 11, 2003 10:58 pm

I just told to convert the code to VisualBasicScript to check that there were no problems on security permissions, because this seems to be the problem.
You mention that Anon user has practically all security permissions, is the same user for the IIS anonymous access?

The code look fine and seems to be correct.
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby afreeman on Fri Dec 12, 2003 5:40 am

Ah, it IS working. The files in question did not exist and so it was bombing out. Sorry for the trouble, there.

Question: In the future, will it possible to rename a file as you add it to the archive?

Ex: ZIP.ArgsAdd(OriginalFileName,NewFileName)
afreeman
 
Posts: 3
Joined: Wed Dec 10, 2003 10:57 pm
Location: USA

Postby John on Fri Dec 12, 2003 9:56 am

[:)], No problem. The component is well proven and version 3.01 is very stable and doesn't give any problem, this is why I asked you to double check all [;)]

About the new feature, yes it could be very interesting to code this new function. But should be a new function because ASP doesn't allow override functions. Noted for the next version of aspEasyZIP.
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain


Return to Zip

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Fatal error: Not able to open ./cache/data_global.php in D:\Hosting\6480136\html\ForosBB3\includes\acm\acm_file.php on line 106