Hello all,
Im using this line to get my program to check online for the latest version of my software.
Dim strLatestVer As String = New System.Net.WebClient().DownloadString("xxx://my.server/latest.version")
The file 'latest.version' is just a textfile with the text "1.x.x.x".
No the problem is, if the url is unavaible or there is no internet connection on the computer running the program, it dies.
So im trying to figure out a way to just make the program skip this if it cant reach the url.
Any ideas?
System.Net.WebClient error handling
Started by deas, Mar 09 2009 01:25 PM
3 replies to this topic
#1
Posted 09 March 2009 - 01:25 PM
|
|
|
#2
Posted 10 March 2009 - 07:16 AM
this might be a hackish sort of way but if its throwing an exception you could just use exception handling
Posted via CodeCall Mobile
Posted via CodeCall Mobile
#3
Posted 12 March 2009 - 10:23 AM
You wouldnt mind giving me some examples? :)
#4
Posted 12 March 2009 - 12:49 PM
Nm, solved it myself using the "TRY" method :)


Sign In
Create Account

Back to top









