I try to upload an excel file from silverlight client to server via webclient. There is my server code:
public class FileUploadHandler : IHttpHandler {
public void ProcessRequest(HttpContext context){
string fname = context.Request.QueryString["filename"].ToString();
string file = context.Server.MapPath("~/App_Data/" + fname );
using (FileStream fs = File.Create(fname)) { SaveFile(context.Request.InputStream, fs); }
Workbook workbook = Workbook.Load(file); -- there is the code throw me error!
}
However, I can open the uploaded file using MS Excel, or Silverlight client.
The version I use is 2009V2 for siliverlight.excel and WebUI.Excel.
Chang
Do you have a stack trace of the error? This will help determine what the problem is.