<![endif]–>
Hello together,
I could not create Excel files, because the SetLicense-Function had a problem. The License file is an Embedded Resource. I fix the problem by restart the Application Pool from the Website. Do you know this problem? Have you a solution or fix for this? We use version 5.3.1.0 of Aspose.Cells.NET.
Thanks for your help
Following problems was shown in the EventViewer:
Source array was not long enough. Check srcIndex and length, and the array's lower bounds.
Description: An unhandled
exception occurred during the execution of the current web request. Please
review the stack trace for more information about the error and where it
originated in the code.
Exception Details: System.ArgumentException: Source array was not long
enough. Check srcIndex and length, and the array's lower bounds.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack
Trace:
[ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.] System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) +0 System.Collections.ArrayList.set_Capacity(Int32 value) +80 System.Collections.ArrayList.EnsureCapacity(Int32 min) +34 System.Collections.ArrayList.Add(Object value) +63 ا.ⴌ.ⴭ() +311 ا.ⴌ.ⴛ(Stream Ԡ) +92 ا.ⴌ.ⴛ(String ⴜ, Assembly ⴝ) +139 Aspose.Cells.License.SetLicense(String licenseName) +84 ExcelInterface.Converter.AsposeImpl.ConvertToExcel(Stream outStream, Boolean asXLSX) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:69 ExcelInterface.Converter.AsposeImpl.toXLSXStream(Stream outStream) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:44 Export_NewGenerateExport.Page_Load(Object sender, EventArgs e) in c:\builds\Ticontract\Live2010\code\Ticontract\Website\carrier\auctions\export\NewGenerateExport.aspx.cs:137 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |
Index was outside the bounds of the array.
Description: An unhandled
exception occurred during the execution of the current web request. Please
review the stack trace for more information about the error and where it
originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside
the bounds of the array.
Source
Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack
Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.] System.Collections.ArrayList.Add(Object value) +31 ا.ⴌ.ⴭ() +311 ا.ⴌ.ⴛ(Stream Ԡ) +92 ا.ⴌ.ⴛ(String ⴜ, Assembly ⴝ) +139 Aspose.Cells.License.SetLicense(String licenseName) +84 ExcelInterface.Converter.AsposeImpl.ConvertToExcel(Stream outStream, Boolean asXLSX) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:69 ExcelInterface.Converter.AsposeImpl.toXLSXStream(Stream outStream) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:44 Export_NewGenerateExport.Page_Load(Object sender, EventArgs e) in c:\builds\Ticontract\Live2010\code\Ticontract\Website\carrier\auctions\export\NewGenerateExport.aspx.cs:137 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |
Object reference not set to an instance of an object.
Description: An unhandled
exception occurred during the execution of the current web request. Please
review the stack trace for more information about the error and where it
originated in the code.
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.
Source
Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack
Trace:
[NullReferenceException: Object reference not set to an instance of an object.] ا.ⴌ.ⴛ(Stream Ԡ) +161 ا.ⴌ.ⴛ(String ⴜ, Assembly ⴝ) +139 Aspose.Cells.License.SetLicense(String licenseName) +84 ExcelInterface.Converter.AsposeImpl.ConvertToExcel(Stream outStream, Boolean asXLSX) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:69 ExcelInterface.Converter.AsposeImpl.toXLSXStream(Stream outStream) in c:\builds\Ticontract\Live2010\code\TpesGeneral\ExcelInterface\Converter\AsposeImpl.cs:44 Export_NewGenerateExport.Page_Load(Object sender, EventArgs e) in c:\builds\Ticontract\Live2010\code\Ticontract\Website\carrier\auctions\export\NewGenerateExport.aspx.cs:137 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |