Search code examples
amazon-web-servicesasp.net-corephp-ziparchivewindows-server-2016api-gateway

Offset to Central Directory cannot be held in an Int64 .net core


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. 


Solution

  • 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.