End of Central Directory record could not be found

后端 未结 10 1869
温柔的废话
温柔的废话 2020-11-29 10:39

I am downloading a zip file using c# program and I get the error

at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression         


        
10条回答
  •  臣服心动
    2020-11-29 11:36

    Write down the stream to a file then inspect it with a (hex) editor.
    I got the same message in Visual Studio when downloading nupkg from nuget.org. It was because nuget.org was blacklisted by the firewall. So instead of the pkg I got a html error page which (of course) cannot be unzipped.

提交回复
热议问题