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.
c# .net zip unzip dotnetzip
add a comment |
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.
c# .net zip unzip dotnetzip
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 ofc: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
add a comment |
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.
c# .net zip unzip dotnetzip
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
c# .net zip unzip dotnetzip
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 ofc: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
add a comment |
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 ofc: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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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