Link to home
Start Free TrialLog in
Avatar of Jess31
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\Documents\2017\Projects\ML\MLiq\MLiq\bin\Debug\app.publish\Application Files\MLiq_1_0_0_2\HtmlAgilityPack.dll.deploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/HtmlAgilityPack.dll.deploy'. Unable to add 'Application Files/MLiq_1_0_0_2/HtmlAgilityPack.dll.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\Documents\2017\Projects\ML\MLiq\MLiq\bin\Debug\app.publish\MLiq.application' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.application'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.application' to the Web site.  An unknown WinINet error has occurred (code 12113).      MLiq            1      
Error            Failed to copy file 'D:\MyActiveData\Abe\Documents\2017\Projects\ML\MLiq\MLiq\bin\Debug\app.publish\Application Files\MLiq_1_0_0_2\MLiq.exe.config.deploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.exe.config.deploy'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.exe.config.deploy' to the Web site.  An unknown WinINet error has occurred (code 12113).      MLiq            1      
Error            Failed to copy file 'D:\MyActiveData\Abe\Documents\2017\Projects\ML\MLiq\MLiq\bin\Debug\app.publish\Application Files\MLiq_1_0_0_2\MLiq.exe.deploy' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.exe.deploy'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.exe.deploy' to the Web site.  An unknown WinINet error has occurred (code 12113).      MLiq            1      
Error            Failed to copy file 'D:\MyActiveData\Abe\Documents\2017\Projects\ML\MLiq\MLiq\bin\Debug\app.publish\Application Files\MLiq_1_0_0_2\MLiq.exe.manifest' to 'ftp://50.62.169.111/mliq/Application Files/MLiq_1_0_0_2/MLiq.exe.manifest'. Unable to add 'Application Files/MLiq_1_0_0_2/MLiq.exe.manifest' to the Web site.  An unknown WinINet error has occurred (code 12113).      MLiq            1
Avatar of David Favor
David Favor
Flag of United States of America image

Couple of things to keep in mind... which your question shows...

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.
Avatar of Jess31
Jess31

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.)
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.