Invalid zip file after creating it with System.IO.Compression
问题 I'm trying to create a zip file that contains one or more files. I'm using the .NET framework 4.5 and more specifically System.IO.Compression namespace. The objective is to allow a user to download a zip file through a ASP.NET MVC application. The zip file is being generated and sent to the client but when I try to open it by doing double click on it I get the following error: Windows cannot open the folder. The compressed (zipped) folder ... is invalid. Here's my code: [HttpGet] public