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'方法的完整代碼? –