Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 After downloading, file becomes corrupt

$
0
0
I am developing a program which allows users to download a file. I upload the file manually to mediafire.

Basically, if I manually download the file, it runs. If I use VB to download the file and start it, it gives me the error
"Not a valid win32 application". I don't get that error if I download it manually and works fine.

The file is another vb project btw.

This is the code I use
Code:

  My.Computer.Network.DownloadFile("http://www.mediafire.com...", "C:\Users\Daniel\Desktop\GameTest.exe")
Process.Start("C:\Users\Daniel\Desktop\GameTest.exe")

Any idea what the problem is?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>