techl / MonoRemoteDebugger

Other
83 stars 18 forks source link

Compressed or Uncompressed size, or offset exceeds the maximum value #49

Closed TaoVonQi closed 5 years ago

TaoVonQi commented 6 years ago

Can you please help?? I'm getting this issue and I don't know how I can fix it!

Installed product versions

Description

ERROR|MonoRemoteDebugger.VSExtension.VSPackage|Ionic.Zip.ZipException: Compressed or Uncompressed size, or offset exceeds the maximum value. Consider setting the UseZip64WhenSaving property on the ZipFile instance. at Ionic.Zip.ZipEntry.SetZip64Flags() at Ionic.Zip.ZipEntry.PostProcessOutput(Stream s) at Ionic.Zip.ZipEntry._WriteEntryData(Stream s) at Ionic.Zip.ZipEntry.Write(Stream s) at Ionic.Zip.ZipFile.Save() at Ionic.Zip.ZipFile.Save(String fileName) at MonoRemoteDebugger.SharedLib.ZipFile.CreateFromDirectory(String directory, String targetZip) at MonoRemoteDebugger.VSExtension.MonoClient.DebugSession.TransferFiles() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MonoRemoteDebugger.VSExtension.MonoVisualStudioExtension.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MonoRemoteDebugger.VSExtension.VSPackage.d11.MoveNext()

Is there a way to set this "UseZip64WhenSaving" property?

TaoVonQi commented 6 years ago

I believe it should be fixed by adding the following line in ZipFile.cs:

zip.UseZip64WhenSaving = Zip64Option.AsNecessary;

techcap commented 6 years ago

Could you make PR for this?

techcap commented 5 years ago

published v1.4.0