GridWeb NullReferenceException

I am getting a NullReferenceException when trying to do a SaveToExcelFile.

I have attached some screenshots that show that GridWeb1, WebWorksheets and docURL are in fact NOT null. I have also included the error text and the aspx and cs file in question.

Fails in IE8 and FF11.

Any suggestions?

Thanks in advance.

Jim

protected void GridWeb1_SaveCommand(object sender, EventArgs e)

{

String docFileName = Session["currentWorksheetGUID"].ToString() + ".xls";

String docURL = Server.MapPath(@"~\Worksheets\") + docFileName;

GridWeb1.WebWorksheets.SaveToExcelFile(docURL);

}

Hi,

Thanks for your posting.

Please provide us your source file (xls/xlsx) which is throwing exception.

The file you are loading in a gridweb and then saving back using the save command button.

Since, I am unable to run your project, will you please provide a simpler runnable code without any dependency of Telerik controls? It will help us sort out your problem quickly.

Creating a separate project is something that I will try and get to you soon.
For now, I have attached the xls that I am loading and then trying to Save to.
Jim

Hi,

It seems, you have provided me output file. I require your source file to see if this issue could occur with the latest version:
Aspose.Cells
for GridWeb v2.7.5.2001