ok ... ma per me l'errore non è a livello di codice ma di qualcosa che non c'è nel pc cmq eseguo ...
ecco l'errore :
cliccando dettagli :
************* Testo dell'eccezione **************
System.Net.WebException: Errore del server remoto: (425) Impossibile aprire la connessione dati..
in Microsoft.VisualBasic.MyServices.Internal.WebClien tCopy.DownloadFile(Uri address, String destinationFileName)
in Microsoft.VisualBasic.Devices.Network.DownloadFile (Uri address, String destinationFileName, ICredentials networkCredentials, Boolean showUI, Int32 connectionTimeout, Boolean overwrite, UICancelOption onUserCancel)
in Microsoft.VisualBasic.Devices.Network.DownloadFile (String address, String destinationFileName, String userName, String password, Boolean showUI, Int32 connectionTimeout, Boolean overwrite, UICancelOption onUserCancel)
in Microsoft.VisualBasic.Devices.Network.DownloadFile (String address, String destinationFileName, String userName, String password, Boolean showUI, Int32 connectionTimeout, Boolean overwrite)
in runner.Form1.Button2_Click(Object sender, EventArgs e)
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
Versione assembly: 4.0.0.0
Versione Win32: 4.0.30319.296 (RTMGDR.030319-2900)
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
il pc del mio amico scarica normalmente il file excel da internet attraverso questo codice :
codice:
My.Computer.Network.DownloadFile("https://dl.dropbox.com/s/c6vvv9j1gn1iwbx/prova2.xls?dl=1", "C:\GmDevelopementMarket\aggiornamento\prova2.xls", "", "", False, 2000, True)
spero di essere stato completo questa volta ... grazie per la vostra disponibilità