Unable to extract transferred zip file which is created using dotnetzip at Windows Server?









up vote
-1
down vote

favorite












In SSIS, I used the following command format to transfer a zip file(password protected) to windows server using xcomtcp



d:xcomntxcomtcp.exe -c1 -f DOMAIN=<domain_name> REMOTE_SYSTEM=<remote_ip_address>
PORT=8044 USERID=<username>
PASSWORD=<password> REMOTE_FILE=remoteDirZipfile.zip
PROTOCOL=TCPIP FILE_OPTION=REPLACE QUEUE=NO LOCAL_FILE=Zipfile.zip


I am able to extract zip file with password in the same windows server 2012(source). But after it is transferred to other windows server, unable to extract zip file(which is received at destination windows server 2012). I have used the following code to zip and set password using dotnetzip ("dotnetzip.dll" from nuget),



 using (ZipFile zip = new ZipFile())

zip.Password = "password123";
zip.AddFile("c:tempfile1.txt");
zip.Save("c:tempZipfile.zip");



But I am able to transfer that zip file to Remote windows server 2012 from windows server 2012, but unable to extract zip file, while extracting, the following error occurred




"Compressed Folder Error: Windows cannot open the
folder,Compressed(zipped) folder is invalid".




How to resolve this issue, your help would be greatly appreciated.










share|improve this question





















  • Please add the zip file that you are unable to open as a link to your question.
    – mjwills
    Nov 11 at 9:08











  • And how do try to unzip the file on the other server?
    – Klaus Gütter
    Nov 11 at 9:13










  • What is the file size of c:tempfile1.txt on one server? The other?
    – mjwills
    Nov 11 at 9:16






  • 1




    Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
    – elgonzo
    Nov 11 at 9:16











  • hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
    – Muruga
    Nov 12 at 8:19














up vote
-1
down vote

favorite












In SSIS, I used the following command format to transfer a zip file(password protected) to windows server using xcomtcp



d:xcomntxcomtcp.exe -c1 -f DOMAIN=<domain_name> REMOTE_SYSTEM=<remote_ip_address>
PORT=8044 USERID=<username>
PASSWORD=<password> REMOTE_FILE=remoteDirZipfile.zip
PROTOCOL=TCPIP FILE_OPTION=REPLACE QUEUE=NO LOCAL_FILE=Zipfile.zip


I am able to extract zip file with password in the same windows server 2012(source). But after it is transferred to other windows server, unable to extract zip file(which is received at destination windows server 2012). I have used the following code to zip and set password using dotnetzip ("dotnetzip.dll" from nuget),



 using (ZipFile zip = new ZipFile())

zip.Password = "password123";
zip.AddFile("c:tempfile1.txt");
zip.Save("c:tempZipfile.zip");



But I am able to transfer that zip file to Remote windows server 2012 from windows server 2012, but unable to extract zip file, while extracting, the following error occurred




"Compressed Folder Error: Windows cannot open the
folder,Compressed(zipped) folder is invalid".




How to resolve this issue, your help would be greatly appreciated.










share|improve this question





















  • Please add the zip file that you are unable to open as a link to your question.
    – mjwills
    Nov 11 at 9:08











  • And how do try to unzip the file on the other server?
    – Klaus Gütter
    Nov 11 at 9:13










  • What is the file size of c:tempfile1.txt on one server? The other?
    – mjwills
    Nov 11 at 9:16






  • 1




    Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
    – elgonzo
    Nov 11 at 9:16











  • hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
    – Muruga
    Nov 12 at 8:19












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











In SSIS, I used the following command format to transfer a zip file(password protected) to windows server using xcomtcp



d:xcomntxcomtcp.exe -c1 -f DOMAIN=<domain_name> REMOTE_SYSTEM=<remote_ip_address>
PORT=8044 USERID=<username>
PASSWORD=<password> REMOTE_FILE=remoteDirZipfile.zip
PROTOCOL=TCPIP FILE_OPTION=REPLACE QUEUE=NO LOCAL_FILE=Zipfile.zip


I am able to extract zip file with password in the same windows server 2012(source). But after it is transferred to other windows server, unable to extract zip file(which is received at destination windows server 2012). I have used the following code to zip and set password using dotnetzip ("dotnetzip.dll" from nuget),



 using (ZipFile zip = new ZipFile())

zip.Password = "password123";
zip.AddFile("c:tempfile1.txt");
zip.Save("c:tempZipfile.zip");



But I am able to transfer that zip file to Remote windows server 2012 from windows server 2012, but unable to extract zip file, while extracting, the following error occurred




"Compressed Folder Error: Windows cannot open the
folder,Compressed(zipped) folder is invalid".




How to resolve this issue, your help would be greatly appreciated.










share|improve this question













In SSIS, I used the following command format to transfer a zip file(password protected) to windows server using xcomtcp



d:xcomntxcomtcp.exe -c1 -f DOMAIN=<domain_name> REMOTE_SYSTEM=<remote_ip_address>
PORT=8044 USERID=<username>
PASSWORD=<password> REMOTE_FILE=remoteDirZipfile.zip
PROTOCOL=TCPIP FILE_OPTION=REPLACE QUEUE=NO LOCAL_FILE=Zipfile.zip


I am able to extract zip file with password in the same windows server 2012(source). But after it is transferred to other windows server, unable to extract zip file(which is received at destination windows server 2012). I have used the following code to zip and set password using dotnetzip ("dotnetzip.dll" from nuget),



 using (ZipFile zip = new ZipFile())

zip.Password = "password123";
zip.AddFile("c:tempfile1.txt");
zip.Save("c:tempZipfile.zip");



But I am able to transfer that zip file to Remote windows server 2012 from windows server 2012, but unable to extract zip file, while extracting, the following error occurred




"Compressed Folder Error: Windows cannot open the
folder,Compressed(zipped) folder is invalid".




How to resolve this issue, your help would be greatly appreciated.







c# .net zip unzip dotnetzip






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 9:06









Muruga

5242616




5242616











  • Please add the zip file that you are unable to open as a link to your question.
    – mjwills
    Nov 11 at 9:08











  • And how do try to unzip the file on the other server?
    – Klaus Gütter
    Nov 11 at 9:13










  • What is the file size of c:tempfile1.txt on one server? The other?
    – mjwills
    Nov 11 at 9:16






  • 1




    Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
    – elgonzo
    Nov 11 at 9:16











  • hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
    – Muruga
    Nov 12 at 8:19
















  • Please add the zip file that you are unable to open as a link to your question.
    – mjwills
    Nov 11 at 9:08











  • And how do try to unzip the file on the other server?
    – Klaus Gütter
    Nov 11 at 9:13










  • What is the file size of c:tempfile1.txt on one server? The other?
    – mjwills
    Nov 11 at 9:16






  • 1




    Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
    – elgonzo
    Nov 11 at 9:16











  • hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
    – Muruga
    Nov 12 at 8:19















Please add the zip file that you are unable to open as a link to your question.
– mjwills
Nov 11 at 9:08





Please add the zip file that you are unable to open as a link to your question.
– mjwills
Nov 11 at 9:08













And how do try to unzip the file on the other server?
– Klaus Gütter
Nov 11 at 9:13




And how do try to unzip the file on the other server?
– Klaus Gütter
Nov 11 at 9:13












What is the file size of c:tempfile1.txt on one server? The other?
– mjwills
Nov 11 at 9:16




What is the file size of c:tempfile1.txt on one server? The other?
– mjwills
Nov 11 at 9:16




1




1




Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
– elgonzo
Nov 11 at 9:16





Grab the invalid ZIP file, and grab the correct, valid original ZIP file. Use a hex editor to check the file content of the invalid ZIP file. Do a binary comparision between the valid and invalid ZIP file to spot differences. Do basic file analysis, essentially. Somehow your ZIP file got corrupted or some other file got transferred with the name of the ZIP file by mistake.
– elgonzo
Nov 11 at 9:16













hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
– Muruga
Nov 12 at 8:19




hi great thanks for all your response.. i resolved this issue by adding parameter code_flag=binary in the xcomtcp
– Muruga
Nov 12 at 8:19

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247261%2funable-to-extract-transferred-zip-file-which-is-created-using-dotnetzip-at-windo%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247261%2funable-to-extract-transferred-zip-file-which-is-created-using-dotnetzip-at-windo%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

ReactJS Fetched API data displays live - need Data displayed static

政党