You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting a "Central Directory Corrupt" when calling Services.Installer.Writers.PackageWriterBase.CreateZipFile because I was trying to create a package of a Module I developed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I was getting a "Central Directory Corrupt" when calling Services.Installer.Writers.PackageWriterBase.CreateZipFile because I was trying to create a package of a Module I developed.
By instructions on this page https://stackoverflow.com/questions/33687425/central-directory-corrupt-error-in-ziparchive I modifyied the PackageWriterBase.cs file from this:
Line 671 strmZipStream = new ZipArchive(strmZipFile);
To this:
Line 671 strmZipStream = new ZipArchive(strmZipFile, ZipArchiveMode.Create, true);
Compiled the solution and copied the DotNetNuke.dll to my dev website and now I don't have the error. But the zip file only contains 0 byte files.
Is anyone getting the same error?
Greetings
Beta Was this translation helpful? Give feedback.
All reactions