Jess31
asked on
Publish to FTP?
I am trying to publish a vb.net windows form application to ftp site.
It runs for a few minutes and then I get some errors, see bellow. I know that the credentials are good as it does manage to create some folders.
Severity Code Description Project File Line Suppression State
Error Failed to copy file 'D:\MyActiveData\Abe\Docum ents\2017\ Projects\M L\MLiq\MLi q\bin\Debu g\app.publ ish\Applic ation Files\MLiq_1_0_0_2\HtmlAgi lityPack.d ll.deploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/HtmlAgi lityPack.d ll.deploy' . Unable to add 'Application Files/MLiq_1_0_0_2/HtmlAgi lityPack.d ll.deploy' to the Web site. An unknown WinINet error has occurred (code 12113). MLiq 1
Severity Code Description Project File Line Suppression State
Error Failed to copy file 'D:\MyActiveData\Abe\Docum ents\2017\ Projects\M L\MLiq\MLi q\bin\Debu g\app.publ ish\MLiq.a pplication ' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.ap plication' . Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.ap plication' to the Web site. An unknown WinINet error has occurred (code 12113). MLiq 1
Error Failed to copy file 'D:\MyActiveData\Abe\Docum ents\2017\ Projects\M L\MLiq\MLi q\bin\Debu g\app.publ ish\Applic ation Files\MLiq_1_0_0_2\MLiq.ex e.config.d eploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.ex e.config.d eploy'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.ex e.config.d eploy' to the Web site. An unknown WinINet error has occurred (code 12113). MLiq 1
Error Failed to copy file 'D:\MyActiveData\Abe\Docum ents\2017\ Projects\M L\MLiq\MLi q\bin\Debu g\app.publ ish\Applic ation Files\MLiq_1_0_0_2\MLiq.ex e.deploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.ex e.deploy'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.ex e.deploy' to the Web site. An unknown WinINet error has occurred (code 12113). MLiq 1
Error Failed to copy file 'D:\MyActiveData\Abe\Docum ents\2017\ Projects\M L\MLiq\MLi q\bin\Debu g\app.publ ish\Applic ation Files\MLiq_1_0_0_2\MLiq.ex e.manifest ' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.ex e.manifest '. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.ex e.manifest ' to the Web site. An unknown WinINet error has occurred (code 12113). MLiq 1
It runs for a few minutes and then I get some errors, see bellow. I know that the credentials are good as it does manage to create some folders.
Severity Code Description Project File Line Suppression State
Error Failed to copy file 'D:\MyActiveData\Abe\Docum
Severity Code Description Project File Line Suppression State
Error Failed to copy file 'D:\MyActiveData\Abe\Docum
Error Failed to copy file 'D:\MyActiveData\Abe\Docum
Error Failed to copy file 'D:\MyActiveData\Abe\Docum
Error Failed to copy file 'D:\MyActiveData\Abe\Docum
ASKER
Yes, this is Visual Basic.Net 2015.
I am trying to Publish the project to an ftp location in order for the user to be able to install and update from there.
50.62.169.111 is ftp on GoDaddy Plesk platform. I think it is Windows.
In general are you suggesting tht I can publish to another (local) folder and then copy it to the ftp? (I am looking for the Publish Once features.)
I am trying to Publish the project to an ftp location in order for the user to be able to install and update from there.
50.62.169.111 is ftp on GoDaddy Plesk platform. I think it is Windows.
In general are you suggesting tht I can publish to another (local) folder and then copy it to the ftp? (I am looking for the Publish Once features.)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Might be GoDaddy is blocking ftp of .exe + .dll files, which is probably a good idea.
First step is fixing you VB code to stop sending all these files.
Only send your captured data + see if that works.
Unsure what Publish Once features might mean.
If you're looking for stability, then you'll capture data to a file on your local device first + then attempt to FTP the file elsewhere at some point in the future.
First step is fixing you VB code to stop sending all these files.
Only send your captured data + see if that works.
Unsure what Publish Once features might mean.
If you're looking for stability, then you'll capture data to a file on your local device first + then attempt to FTP the file elsewhere at some point in the future.
If you attempt posting form data across a network at the actual time the form data is captured, then every time your ftp (or any other) net connection is down, you lose all data captured.
Better design will be to capture data to a local file + then after you have the data safely in a file, then repeatedly attempt sending it elsewhere, till transmission completes successfully.
Now about your error.
Your question suggests that your application is Visual Basic, so drop a note verifying this assumption is correct.
Also state exact data you're attempting to transfer, as .dll files would never be part of any form data someone input.
Also state specifics of 50.62.169.111 runtime environment - OS + OS version + FTP server used + FTP version. (Looks to be an old version of Windows server running).
The above error message suggest that maybe the file names are being rejected.
I haven't used Windoze for years + as I recall, older versions only accepted filenames of the form file.extension + rejected filenames containing multiple '.' characters.
So files like MLiq.exe.config.deploy might be the problem.
First fix your code to actually only send form data, not all the dll files.
Then try manually transferring a file to your FTP server.
Another problem might be some sort of Malware scanning being done on your FTP server, which is disallowing transfer of any binary files.
As... the rejected files are .exe + .dll (executable code files).
FTP can be setup to reject certain file types, so this might be part of the problem too.