0
我不明白为什么这行代码抛出这个错误。带有FormatException的WebClient.DownloadString(url)错误
任何想法,不胜感激。
System.FormatException was unhandled
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at micro.Updater.start(Object obj) in C:\Users\Windows\Documents\Visual Studio 2015\Projects\Micro\Updater.cs:line 22
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
请从该对话框中点击“将异常的详细信息复制到剪贴板”,然后将其复制的文本作为编辑内容放入代码块中 –
您是否还可以包含'start'方法的完整代码? –