Hello:
I have a problem to use silverlight to upload file to HTTP ASP.NET website.
The ASP.NET website is very simple. The form has one "asp:FileUpload" object. The form has been marked to 'method="post" enctype="multipart/form-data"'.
The web.config has marked '<httpRuntime maxRequestLength="2097151" executionTimeout="1800"/>' to allow large request data length.
The form "Page_Load" saves file data
===============================
foreach (string file in Request.Files.AllKeys)
{
Request.Files[file].SaveAs(.......);
}
=================================
The problem is that, I write a SilverLight client to update files to the website through the above ASP.NET webform.
If the file size is not too large (<100M), the upload function is OK.
if the file size is too large, the upload function will fail.
I have tested the Webform by directly access the form in browser and using the "File" object to upload the file. It is OK in pure HTTP/HTML/ASP.NET way. Just fail in Silverlight. The control is still not passed to the Webform "Page_Load".
In silverlight , I have tried HttpWebRequest to upload file both method will fail in same way for large file.
I note that when upload file, the browser (both IE6 and Firefox3) memory usage will increase very much (view in task manager) .
However, uplaod file in webform page, the browser memory usage will NOT increase too much .
I think the problem is in the silverlight plugin.
Anyone have idea about this problem.
Thank you very much.
testing system -
OS - Vista x64,
memory 4G,
VisualStudio2008+sp1+silverlight2 SDK,
Testing in VisualStudio development webserver process.