Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My.Computer.Network.UploadFile blocked by Server

Status
Not open for further replies.

monkey64

Technical User
Apr 27, 2008
69
GB
I wrote a vb.net 2008 program to upload a file to a web server. It works fine when executed manually, but has issues when scheduled on our Microsoft Small Business Server 2003.

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.

I tried all the usual things, such as permission levels on the server and everything is set to Full Control. I also changed the manifest to level="requireAdministrator". Obviously, this could be a server issue?

Here's the code I am using to upload.

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

Any ideas?
 
Just a thought:
Would it make any difference if the program is physically set to 'Run As Administrator'?

Also, any firewalls preventing server access or could there be timeout issues?

Not sure if any of these apply, but thought I should post them anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top