本帖最后由 wang_maosen 于 2012-08-21 10:13:04 编辑

解决方案 »

  1.   

    时间 2012/8/21 10:09:31 捕获异常 System.InvalidCastException: 无法将类型为“System.Object[]”的对象强制转换为类型“System.IConvertible”。
       在 System.Convert.ToInt32(Object value)
      

  2.   

    传入的是数组,因此object[] paras = (object[])state;
    var shopId = Convert.ToInt32(paras[0]);
      

  3.   

    state是什么???Convert.ToInt32(state.tostring());看看
      

  4.   

    或者直接传入int不行吗?
     public void AsyncRefreshLogisticsCompany(int shopId)
            {
                IsBusy = true;
                ThreadPool.QueueUserWorkItem(RefreshLogisticsCompany,shopId);
            }
     private void RefreshLogisticsCompany(object state)
            {
                var result = new SunyuResult();
                try
                {
                  var shopId = Convert.ToInt32(state)