There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
"Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'."
The above exception is happening every time I go to update. I tracked it down to the DownloadUpdateDialog method GetFileName( ) at line 67. I'm not intimately familiar with web requests but for some reason what is being generated by that line is a FileWebRequest
rather than an HttpWebRequest, which is causing the exception. A seemingly simple fix but the FileWebResponse class doesn't have a status property which is what is driving the next bit of logic.
After reading up on the exception a bit I'm guessing it's because of my update XML. From what I read there should be an HTTP at the beginning of my URI or it's considered to be a file path.
<title>New version 18.104.22.168 is available for XXXXXX</title>
If that's not supported, you might just want to reject the XML entirely with a message that explains why it's being rejected.