当前位置: 代码迷 >> .NET Framework >> SharpUpdater 程序更新解决思路
  详细解决方案

SharpUpdater 程序更新解决思路

热度:142   发布时间:2016-05-01 23:33:15.0
SharpUpdater 程序更新


************** 异常文本 **************
System.ArgumentException: invalid version number 版本号无效

在 CnSharp.Windows.Updater.Util.ReleaseList.GetIntFromArray(String[] array, Int32 i)
   在 CnSharp.Windows.Updater.Util.ReleaseList.CompareVersion(String currentVersion, String newVersion)
   在 CnSharp.Windows.Updater.Util.ReleaseList.GetDifferences(ReleaseList otherList, Int64& fileSize)
   在 CnSharp.Windows.Updater.UpdateForm.Init()
   在 CnSharp.Windows.Updater.UpdateForm.FormUpdate_Load(Object sender, EventArgs e)
   在 System.Windows.Forms.Form.OnLoad(EventArgs e)
   在 System.Windows.Forms.Form.OnCreateControl()
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WmShowWindow(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
弄不明白。。。帮帮忙
------解决方案--------------------
1、 version number 的填写格式
2、更新的版本判断依据
  相关解决方案