Free Support Forum -

Will template workbook work for

I used the following code to test the template workbook on It didn’t have problem on local host.

When I pushed all the files to production server, all the other users got access denied when starting open the template workbook. Please advise.



//Creating a Workbook object

Workbook templateWorkbook = new Workbook();

Workbook workbook = new Workbook();

string path = MapPath(".");

string tempFile = path + @"\FoodCount.xls";


// copy it first


// close the template

templateWorkbook.Save(tempFile, FileFormatType.Default);

Worksheet rawSheet = workbook.Worksheets[1]; // Data

Cells cells = rawSheet.Cells;

workbook.Save("New.xls", FileFormatType.Default, SaveType.OpenInBrowser, this.Response);


Thanks for considering Aspose.

It might be configuration problem on your server. Please check . Is Aspose.Cells run in full trust mode? You can create a simple aspnet program without Aspose.Cells to implement file handling to disk to test your configurations.

Thank you.