我自己写了一个activeX控件,其中要用到文件上传,把本地文件上传到服务器上一个指定的页面,然后由这个处理后将文件保存到某个文件夹.
byte[] responseArray =myup.UploadFile("http://localhost/test/webform1.aspx","POST",filepath);webform1.aspx的接受文件的代码如下:
private void Page_Load(object sender, System.EventArgs e)
{
foreach(string f in Request.Files.AllKeys) 

HttpPostedFile file = Request.Files[f]; 
file.SaveAs(@"c:\" + file.FileName); 
   
}
}单运行总是提示错误:
远程服务器返回错误:500内部服务器错误.请问那位大哥遇到过此种情况,应该怎么解决