Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
Author | Forum: PowerTCP Zip Compression for ActiveX Topic: ASP and BackgroundOperation |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 20, 2005 5:51 PM Sorry if this is a really stupid question, but is it possible to Unzip a file Asynchronously in ASP under IIS? For example: Set oZip = CreateObject("Dart.Zip.1") oZip.BackgroundOperation = 3 oZip.DoEvents = False oZip.QuickUnzip strZipFile, strUnzipFolder, False, , True set oZip = Nothing Thanks Doug |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 21, 2005 8:59 AM I can't think of an easy way to do that, since the whole nature of ASP is request and response based (make request, wait for response) You may be able to use an ActiveX executable to do it, but unfortunately I do not have an example to give you. You also may be able to use ASP.NET to do something like that, but again, I don't have an example. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 21, 2005 9:09 AM That's what I thought too... just wasn't sure if there was some way it could simply shell out another thread or something to do this after the ASP page finished processing. Sounds like that's what you're eluding to though with the ActiveX exe so maybe I'll explore that. Thanks for the quick reply though. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 21, 2005 9:10 AM Sorry, one last question. What does the .1 mean in the createobject method? In other words, what's the difference between: Set oZip = CreateObject("Dart.Zip.1") and Set oZip = CreateObject("Dart.Zip") They both seem to work. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 21, 2005 9:17 AM I think it has something to do with side by side versioning. Meaning if we released another version of the control with a different guid (which we don't do) then you could have .1 and .2 registered on you system at the same time. I believe that the last registered version becomes the one with no number at the end. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 21, 2005 1:05 PM Tony, Thanks for the great info. I have one last question for you. We're working with the support on it but they say they're not very good with ASP and you seem to be. So, you know here is what we are doing: 1) In a VB6 windows app we are zipping a bunch of html files, generally around 50. 2) Then we are FTP'ing the zip file to our web server in that same VB6 application 3) Then when the FTP is complete, the VB6 app makes an http request to the ASP page which then attempts to unzip the file that was just uploaded. This normally works great when there are not many people doing it...but as soon as we get a bunch of traffic (like a few hundred people trying it at once) the control just seems to crap out. The server still has plenty of CPU but it's like the control cannot handle the volume of requests and the unzip does not finish in under 90 seconds (our ASP timeout value) so that page times out. We're also getting a variey of errors when this happens: Error Code: 12026 Error Description: Write failed Error Code: 13001 Error Description: The file is not identified as a compliant zip file Error Code: 12027 Error Description: Could not open file for reading Here is the ASP code we are using in case you can see what might be the problem: On Error Resume Next Dim oZip Set oZip = CreateObject("Dart.ZipLite.1") oZip.QuickUnzip strZipFile, strUnzipFolder, False, , True If Err.Number > 0 Then OurErrorCode End If set oZip = Nothing As an example, last night we had about 70 of these errors come up in about 15 minute time period. Really looking for some help on this. Is there better way we can code the ASP page to improve the performance of the control? I realize this may be beyond what you can provide on this forum but it was worth a try. Thanks Doug |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 21, 2005 1:15 PM I didn't realize that you were writing to support as well. Since that is the case, I will let the rest of this play out via email. I will review any emails you sent and offer my suggestions if I have any. In the future, just so you know, there is no need to send your questions to both places. It all gets looked at by the same people. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 21, 2005 1:57 PM Actually, the questions I have asked here I did not send to support since they were more informational in nature not regarding a specific problem. The only reason I posted the last reply here is because the support person stated to me "but I'm not a big ASP user" so that made me wonder about posting my ASP question here. Hopefully you can review the emails to support and provide some additional ASP guidance. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 22, 2005 11:49 AM Unfortunately, we're not getting much help from support because they are not familiar with integrating the control with ASP. And they are telling us that. We're starting to look at other products that can also provide support for our environment. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 22, 2005 11:57 AM Unfortunately I can't add much more to what Ken said in his last reply to you. It sounds like what is happening is that two users are attempting to unzip a file that has the same name. Are you using a different directory for every session? If so, that's what I would do. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 22, 2005 2:07 PM I described that to Ken in the last email, each user has their own zip and unzip folder so noone is unzipping from the same file. The filename itself may be the same but it's not in the same folder. So, for example, one user may be unzipping: From: c:\zips\user1\myfile.zip To: c:\unzips\user1\ And another user may be unzipping: From: c:\zips\user2\myfile.zip To: c:\unzips\user2\ You don't mean to imply that this is using the "same name" do you since they are both called "myfile.zip"? I also don't see how adding COM+ into the equation is going to help the performance. It still acts like the control is simply being overloaded with requests and cannot scale. Would using the .Net component provide any additional options than the Active X component? Otherwise, we may need to look at implementing a work queue of sorts to queue up the unzip requests and have a process that unzips one at a time instead of everyone trying to unzip all at once during heavy traffic. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 22, 2005 2:26 PM I meant that there may be the scenario where two files with different names were being unzipped into the same folder and they each contained a file that had the same name. If that is not the case, then I have no further suggestions. I would definitely give the Zip for .NET a try. You could use it in ASP.NET instead of regular ASP. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 22, 2005 2:41 PM Thanks. We're first going to try the COM+ option and compare performance. If that does not work, we'll try the .Net control. Are we able to create a .tlb from that so we could first just try from ASP? Then try ASP.Net as a final option? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 22, 2005 2:49 PM I'm not sure. I've never tried it. Sorry. |
thesideline From: Ankeny, IA USA Posts: 12 Member Since: 03/20/05 |
posted March 22, 2005 2:52 PM Ok. Thanks for your suggestions. |
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
![]() |