help with"demo using the aspEasyZIP


help with"demo using the aspEasyZIP

Postby dharm on Thu Oct 13, 2005 9:15 am

i am using iis6 on windows server 2003

i have been trying to work with the "real time demo using the aspEasyZIP library"

the path to the directory with all the files are "C:\Inetpub\wwwroot\zipdemos\"
and the test files i have got are in "C:\Inetpub\wwwroot\zipdemos\dir"

the ONLY thing i changed was strPath, to strPath = "dir/"
in the dir folder i have "Test.zip"
in showdir.asp, when running it, when highlighting test.zip it shows "http://localhost/zipdemos/zip_list.asp?FileName=dir/Test.zip"
when i click it, it redirects me to zip_list.asp, and shows me the contents of the zip test.zip
now when i highlight one of the links to the items within the zip, i get "http://localhost/test/unzip.asp?Filename=dir/Test.zip&Item=exa.txt"
when i click the link, i get a 404 page "HTTP Error 404 - File or directory not found."
the url of the window now displays "http://localhost/zipdemos/temp/exa.txt"

i checked the temp directory, and it is empty, is it supposed to be pointing to the temp directory to actually view the file?

i have full permissions for everyone on my system right now, but still cant get it to work.

i uploaded the same zip to the live demo on mitdata, and i can access the files completely fine.

so did i miss changing something?
dharm
 
Posts: 5
Joined: Thu Oct 13, 2005 8:55 am

Postby John on Thu Oct 13, 2005 2:03 pm

Seems to be a security issue that prevents for creating eva.txt at the temp directory.

You may edit unzip.asp and add and set the DEBUG property to true to see what's producing the error.

The demo server at MITData is running also on Win2k03.
John Lohmeyer
MITData, S.C.P
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby dharm on Thu Oct 13, 2005 4:12 pm

i checked the unzip.asp, and debug is already set to true "
Zip.Debug = True"

where does the debug output to? will it only display output if registered?
dharm
 
Posts: 5
Joined: Thu Oct 13, 2005 8:55 am

Postby John on Thu Oct 13, 2005 4:24 pm

Uppss... remove or comment the following line:

response.redirect "temp/" & strFichero

by

response.write "wait..."
John Lohmeyer
MITData, S.C.P
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby dharm on Fri Oct 14, 2005 6:26 am

Code: Select all
aspEasyZIP 3.30 (12/11/04) DEBUG: DEBUGGING ON
aspEasyZIP 3.30 (12/11/04) DEBUG: Setting FileName to c:\inetpub\wwwroot\zipdemos\dir\example.zip
aspEasyZIP 3.30 (12/11/04) DEBUG: ArgsClear
aspEasyZIP 3.30 (12/11/04) DEBUG: ArgsAdd(example.txt)
aspEasyZIP 3.30 (12/11/04) DEBUG: Sets Temporal directory to c:\inetpub\wwwroot\zipdemos\temp
aspEasyZIP 3.30 (12/11/04) DEBUG: Sets ExtrBaseDir to c:\inetpub\wwwroot\zipdemos\temp
aspEasyZIP 3.30 (12/11/04) DLL DEBUG: UNZDLL.DLL not found! (0)
aspEasyZIP 3.30 (12/11/04) DLL DEBUG: UNZDLL.DLL not found! unloaded (0)
aspEasyZIP 3.30 (12/11/04) DEBUG: UnZIP [c:\inetpub\wwwroot\zipdemos\dir\example.zip]

aspEasyZIP 3.30 (12/11/04) DLL DEBUG: Warning - Unattended Extract: possible not all files extracted (0)
aspEasyZIP 3.30 (12/11/04) DLL DEBUG: UNZDLL.DLL not found! (0)
aspEasyZIP 3.30 (12/11/04) DLL DEBUG: UNZDLL.DLL not found! unloaded (0)
aspEasyZIP 3.30 (12/11/04) DEBUG: CreateReminderRegistration [c:\inetpub\wwwroot\zipdemos\temp\easyZip.txt] ( REGISTER TO REMOVE IT )
aspEasyZIP 3.30 (12/11/04) DEBUG: SuccessCnt returned 0
Files UnZipped=0 with Error=10704 message=UNZDLL.DLL not found! unloaded


i put the 3 dll in C:\windows\system32\
i did regsvr32 easyzip.dll and was successful
also installed aspeasyzip...
Last edited by dharm on Fri Oct 14, 2005 7:32 am, edited 1 time in total.
dharm
 
Posts: 5
Joined: Thu Oct 13, 2005 8:55 am

Postby dharm on Fri Oct 14, 2005 7:31 am

ok, i seem to have solved it... it was a security issue as you had said...

i enabled everyone full controll over the unzdll.dll and now it works fine

i have one more question though,
i want to make it so that in dir/ if there is a subfolder in there, when you click the subfolder in showdir.asp (the subfolder is just a folder, not in a zip)
that it reloads showdir.asp so that showdir.asp strpath now = dir/<subfolder>

i want this because i am uploading zips in seperate directories in dir, and when i click the subfolder, it just tries to do a directory view, which then messes up, because i block directory viewing on my site...

thanks for all the help, i love this product, i will be definately buying this...
dharm
 
Posts: 5
Joined: Thu Oct 13, 2005 8:55 am

Postby John on Fri Oct 14, 2005 3:12 pm

If you need to see the directories in a zip file then you should manage the contents that returns the list, and when you click on the directory then manage again the list of showdir.asp
You may need some time and work to do it.
John Lohmeyer
MITData, S.C.P
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby dharm on Fri Oct 14, 2005 10:35 pm

what i meant was,
when you browse showdir.asp it displays the contents of the 'dir/' (what i have strtemp set as)

if you have a subdirectory in dir/, example/

how would i go about reloading the showdir.asp so that strtemp now points to 'dir/example/'

so basically what i am asking, how can i differentiate between a file and a folder in showdir.asp...
dharm
 
Posts: 5
Joined: Thu Oct 13, 2005 8:55 am

Postby John on Mon Oct 17, 2005 11:46 am

Ok. I will check the showdir.asp and add this implementation for you.
John Lohmeyer
MITData, S.C.P
John
 
Posts: 1313
Joined: Wed Oct 31, 2001 10:23 am
Location: Spain

Postby John on Mon Oct 17, 2005 1:39 pm

Added, see it on the real-time demo. :wink:
John Lohmeyer
MITData, S.C.P
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 2 guests

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