Jump to content
Forum²

Recommended Posts

Posted

I wrote a vb.net 2008 program to upload a file to our web server.

The exe file works correctly when executed manually, but has issues when scheduled on the server.

 

It works for about a week, then just stops working. On the web server, I get a zero-byte file. I think this indicates that the data transfer is being blocked.

Debugging the procees also confirms this.

 

I tried all the usual things, such as permission levels on the server and everything is set to Full Control. I also changed the vb.net manifest file to level="requireAdministrator".

 

Here's the vb.net code I am using to upload.

 

My.Computer.Network.UploadFile("C:\update.php",
"ftp://ftp.myhosting.net/folder/htdocs/update.php", user, pass, True, 500)

 

What would I have to do to allow outbound FTP access to this .exe file?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...