Quantcast
Channel: DotNetZip Library
Viewing all articles
Browse latest Browse all 664

Commented Issue: "File already exists" error when adding new file to a zip file [10447]

$
0
0
<p>from discussion http://dotnetzip.codeplex.com/Thread/View.aspx?ThreadId=200380</p>
<p>&nbsp;</p>
<p>Hi. Sorry it took so long to get the information about this problem. From the following job log, it looks like the file that&#39;s getting the &quot;already exists&quot; error is the DotNetZip temporary file, not the actual file name. Is this possible?</p>
<p>&nbsp;</p>
<p>=====================</p>
<p>&nbsp;</p>
<p>03:16:36 I The workflow has started</p>
<p>&nbsp;</p>
<p>Start OK File processing.</p>
<p>&nbsp;</p>
<p>03:16:36 I Activity &#39;ForEachFileOK&#39; started</p>
<p>&nbsp;</p>
<p>OK File: account_2010-03-06.ok</p>
<p>&nbsp;</p>
<p>03:16:37 I Activity &#39;Archive&#39; started</p>
<p>&nbsp;</p>
<p>03:16:37 I Activity &#39;Archive&#39; failed</p>
<p>&nbsp;</p>
<p>03:16:37 E IOException in step &#39;Archive&#39;: The file &#39;\\tnt-chi-fs002\IRPT\Prod\SYS\DotNetZip-aovzxmue.tmp&#39; already exists.</p>
<p>&nbsp;</p>
<p>03:16:37 I Activity &#39;ForEachFileOK&#39; failed</p>
<p>&nbsp;</p>
<p>03:16:37 E IOException in step &#39;ForEachFileOK&#39;: The file &#39;\\tnt-chi-fs002\IRPT\Prod\SYS\DotNetZip-aovzxmue.tmp&#39; already exists.</p>
<p>&nbsp;</p>
<p>03:16:37 E The workflow has faulted</p>

Comments: ** Comment from web user: lcreagh **

Pursuant to the comment above about two workflows running concurrently and causing a temp file collision, I had a user get the following error when trying to add files to a zip. Below is the entire stack trace. Two things I don't understand:

1. I haven't specified a separate path for zip temp files to go to, and I can't see them being created in the final zip directory, even though I am showing hidden files.

2. Because of #1, I can't see why DotNetZip would be trying to create temp files in an E: path, since my app has no hardcoded paths, just relative ones, and the app is running on the C: drive.

Any ideas why DotNetZip might be trying to write temp files to E:\(the rest of the path in the stack trace is my relative app path) and why I'm not seeing the temp files being created? How are folks working around this?

Thanks.

Laura

ERROR: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\GIS_Sites\tcds\reports\output\68\scottk\zip\DotNetZip-ftnr3n4u.tmp'.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at tcds_bulk_reports.btnBulkRpt_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Viewing all articles
Browse latest Browse all 664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>