I call this function many times by use multi-thread for extract text from excel file.
I cannot track this error because it’s not error everytime.
How I solve this problem?
Message:
Object reference not set to an instance of an object.
Stack Trace = at ؆.㥚.㥩(Stream ԁ)
at ؆.㥚.㥩(String 㥪, Assembly 㥫)
at AO.Library.MSOffice.ExcelManager…ctor()
at Function.ConvertText(DocumentType eDocumentType, String sFilePath, AOData& oAOData, Int32& iStatusCode, Boolean bDebugMode)
Code:
//Call the class library from web service
ExcelManager _excel = new ExcelManager();
//Class that uses Aspose.Cells
public class ExcelManager{
…
//Constructor of the class library
public ExcelManager()
{
Aspose.Cells.License license = new Aspose.Cells.License();
license.SetLicense(_asposeLicense); <- Error at this line.
}
…
}
Remark: here is product info.
Product name: Aspose.Cells.dll
Assembly version: 6.0.1.0
Product version: 2011.07.20
License: Aspose.Total
Thanks,
Nuch
</div>
</div>