I get the error below when trying to use a license file in an ASP.NET/C#.NET web application. Little help?
Server Error in '/' Application.
Invalid character in a Base-64 string.
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.FormatException: Invalid character in a Base-64 string.
Source Error:
Line 916: excelPath = WebUtils.GetAsposePath(page);
Line 917:
Line 918: Excel excel = new Excel(excelPath + "\\Aspose.Excel.lic", page);
Line 919: // open the designer (template) .xls document.
Line 920: excel.Open(excelPath + "\\JournalAllTransactionsDesigner.xls"); |
Source File: C:\Solutions\MemberST.NET20\Components\ReportsDB.cs
Line: 918
Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
c4.a(String A_0, String A_1) +324
c4.a() +492
c4..ctor(String key, String licenseFile) +46
Aspose.Excel.Excel.e() +38
Aspose.Excel.Excel..ctor(String licenseFile, Page page) +119
MemberST.Components.ReportsDB.ExportJournalAllTransactions(DataSet journalData, Page page) in C:\Solutions\MemberST.NET20\Components\ReportsDB.cs:918
MemberST.Membership.JournalPF.ExportAllTransactions(Int32 adminID, Int32 clientID, Int32 memUnitID, String daysDiff, String startDate, String endDate, Int32 timeZone) in c:\Solutions\MemberST.NET20\Web\Membership\JournalPF.aspx.cs:119
MemberST.Membership.JournalPF.Page_Load(Object sender, EventArgs e) in c:\Solutions\MemberST.NET20\Web\Membership\JournalPF.aspx.cs:47
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Hi,
Thanks for considering Aspose.
Pleaese make sure the validity of your license file and check:
Licensing
We look into it and get back to you soon.
Thank you.
Old Aspose.Excel license file has a problem under .Net2.0. I think it causes this problem.
For some external reasons, we don't provide Aspose.Excel any more. It's updated and changed to Aspose.Cells.
Please upgrade your application to Aspose.Cells and renew your subscription to get a new license file.