We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bad signature (0x0A0D0A0D) at position 0x00000000

Team,



We are facing an issue while creating an excel using aspose. Please find the error message.



Error Message:

”.ƒž: Bad signature (0x0A0D0A0D) at position 0x00000000

at ”.˜”[1].›¬(˜”[1] , Encoding )

at ”.˜”[1].Ÿ

(ž , Boolean )

at ”.™”[1].˜(™”[1] )

at ”.™”[1].”(™”[1] )

Hi

Thank you for contacting support. Please provide us your sample code and source files (if used in the code) in this forum thread for testing purposes. We'll investigate and reply you accordingly.

Code:

WriteLog(“Aspose Started”, false);

string aCells = “Aspose.Total.lic”;

Aspose.Cells.License license = new Aspose.Cells.License();

license.SetLicense(aCells);

WriteLog(“Aspose Ended”, false);

WriteLog(“Load Options Started”, false);

LoadOptions loadOptions = new LoadOptions(LoadFormat.Xlsx);

Workbook workbook = new Workbook(destfileName, loadOptions);

WriteLog(“Load Options Ended”, false);



______________________________

Log File:

______________________________

DateTime: 10/7/2015 11:38:33 AM : Aspose Started

DateTime: 10/7/2015 11:38:33 AM : Aspose Ended

DateTime: 10/7/2015 11:38:33 AM : Load Options Started

DateTime: 10/7/2015 11:38:33 AM : Error Extracting the excel file



_______________________________________

Note: Before “Load Options Ended” we are getting an error.

____________________________

Hi,


Thanks for sharing the sample code.

Could you please attach your template file that you are loading via Aspose.Cells APIs and got the error, we will check it soon.

Thank you.

we don’t have any template referred,





Code :Workbook workbook = new Workbook(destfileName, loadOptions);



destfileName having the path of the file during runtime.

Hi Shankar,


By template file we meant the spreadsheet you are trying to load with Aspose.Cells.Workbook. We also require the details of the LoadOptions properties that you are setting therefore it would be of great help if you can share your complete code along with supporting documents to investigate the matter on our side.

That said, if you are using any older revision of Aspose.Cells for .NET, we strongly suggest you to give a try to the latest version, that is; 8.6.0.3 at the moment. In case the problem persists, please provide the above requested.

Aspose Team- Please update the issue status, We are waiting for your reply.

Hi Shanker,


As requested earlier [ref 1,2], we need your sample spreadsheet (that is causing the problem) along with your complete code to investigate the matter on our side. Moreover, we requested you to try the scenario against the latest version of Aspose.Cells for .NET API 8.6.0.3 (download link shared in previous response). Please share the results.