I'm trying to find a way to let my users find out if an update exists. What I'm trying to do is to connect my user to my Dropbox and get the current update version from it.
Here is my code (which is not really mine...)
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(" https://www.dropbox.com/s/MyDropBox/Version.txt?dl=0")
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim newestversion As String = sr.ReadToEnd()
Dim currentversion As String = Application.ProductVersion
If newestversion.Contains(currentversion) Then
MsgBox("You are up todate!")
Else
MsgBox("You are not up todate!")
End If
My problem is that no matter what I'm getting the msg "You are not up to date!".
Can anyone tell me why?
By the way, the address to my dropbox was changed by me before publishing my question to "MyDropbox"