Offset to Central Directory cannot be held in an I

2019-08-29 09:00发布

问题:

I am getting "Offset to Central Directory cannot be held in an Int64" exception while using ZipArchive in .NET CORE. 

NOTE: I am not getting it in my developement machine (Windows 7), but getting it in production server. (Windows Server 2016). Please help. 

Thanks,

Kannan. 

回答1:

This is because Aws API Gateway. Sorry for not mentioning it. If i skip API Gateway and hit my endpoint through the load balancer i can send the zip files without any issues.