Thanks for confirming the fix Glen. I'm aware of the download issue and am working closely with someone on this one offline. The problem is the firmware is failing to download.
I now have the reason for the failure:
...downloading and installing firmware for:Volkswagen (v7.02)
Setting download source to: http://downloads.phathack.com/firmware/headunit_0x3950_7_02.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\headunit_0x3950_7_02.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/systemfiles2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\systemfiles2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/daemonfiles_2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\daemonfiles_2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/playerfiles_2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\playerfiles_2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
...download failed, unable to continue.
Completion time: 23:57:18
Not quite sure what is going on here, as far as the code is concerned this should be being coped with:
Try
wr = CType(FileWebRequest.Create(_sourceURL), FileWebRequest)
resp = CType(wr.GetResponse(), FileWebResponse)
Catch ex As Exception
wr = CType(FileWebRequest.Create(_sourceURL), HttpWebRequest)
resp = CType(wr.GetResponse(), HttpWebResponse)
End Try
I guess it could be:
wr = CType(FileWebRequest.Create(_sourceURL), HttpWebRequest)
...performing an incorrect typecast - but why I'm not seeing that in the dev. environment is beyond me!
I'm going to try changing it to:
wr = CType(HttpWebRequest.Create(_sourceURL), HttpWebRequest)
and if it doesn't break in the dev. environment then I'll throw it back for testing.