new System.Net.WebClient().DownloadFile(serverPath, localPath);

有时候使用的时候,文件下载不下来。需要设置一下服务器上IIS的权限

 或者需要设置一下

HTTP头   任意mime类型   .*    application/octet-stream

posted on 2015-09-09 17:45  御不凡  阅读(366)  评论(0编辑  收藏  举报