本帖最后由 trisha 于 2010-12-22 16:36:55 编辑

解决方案 »

  1.   

    ipath+name看看着是什么? name 貌似已经带上路径了。
      

  2.   


    我用的开发环境是win7+VS2010
    部署的环境是windows2003,没有安装VS
      

  3.   

    string savePath = Server.MapPath("~/upload/");
    if (!System.IO.Directory.Exists(savePath))
    {                
    System.IO.Directory.CreateDirectory(savePath);
    }
    savePath = savePath + "\\" + fileUpload.FileName;
    fileUpload.SaveAs(savePath);//保存文件
    再filestream