Getting Error message while downloading Excel file from Server

hi;

We are using Aspose.cell to create excel file. but when we try to save the file by calling save function the following error mesage are displayed

In IE 8.0
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.

In IE 6.0

Microsoft Office Excel cannot access the file .... there are several
possible reasons:

- The file name or path does not exist
- The file is being used by another program
- The workbook you are trying yto save has the same name as a
currently open workbook

Can you please tell me how can i reslove the issue.

please reply ASAP as we are being delayed GOlive because of this issue

Hi,

Well, your mentioned issue may not be related to Aspose.Cells by any means. For confirmation, when you try to open/save an Excel file using .NET File Streams (e.g System.IO API) without using Aspose.Cells for .NET API, you can find the same issue.
e.g
(Note: You may change your code accordingly to check the issue).

FileStream fs = File.OpenRead(strFilePath);
byte[] data = new byte[fs.Length];
fs.Read(data, 0, data.Length);
Response.Clear();
Response.ClearHeaders();
Response.ContentType = “application/vnd.ms-excel”;
Response.AddHeader(“Content-Length”, data.Length.ToString());
Response.AddHeader(“content-disposition”, “attachment; filename=Book1.xls”);
Response.BinaryWrite(data);
Response.End();


May be your issue is related to your system configurations/settings or accessibility issue

Thank you.