Asp.Net - File.OpenRead SharpZipLib issue

If you are having problems upload a file on the server (from a webform) using the SharpZipLib component. Specifically my issue was that it worked on localhost but not on the server? Very strange. The error I received was: "Could not find file:c:/winnt/system32/*.zip" or "Could not find a part of the path".

Well the solution finally hit me. I had to save the zip file in a temporary file, then access it to varify its content, and finally copy it to its final destination. For some unknown reason it is not nessesary to first save the file when working on localhost. Be sure to save the zip file before you try to access its content.

↓ Add Comment
↓ Add Comment

Comments (0)