License Issue

Posted by: s3india1994 on 23 August 2020, 4:51 am EST

  • Posted 23 August 2020, 4:51 am EST

    Kindly Resolve my following issue on urgent basis

    I have already purchased Purchased ComponentOne Studio - Enterprise Edition

    I have WebAPI Solution to serve flexreport. license file exists there
    license file entries on updating through grapecity license manager

    C1.C1Excel.C1XLBook, C1.C1Excel.4.5.2
    C1.C1Pdf.C1PdfDocument, C1.C1Pdf.4.5.2
    C1.C1Word.C1WordDocument, C1.C1Word.4.5.2
    C1.Web.Api.Cloud.LicenseDetector, C1.Web.Api.Cloud
    C1.Web.Api.DataEngine.LicenseDetector, C1.Web.Api.DataEngine
    C1.Web.Api.Excel.ExcelExporter, C1.Web.Api.Excel
    C1.Web.Api.Excel.ExcelImporter, C1.Web.Api.Excel
    C1.Web.Api.Image.ImageExporter, C1.Web.Api.Image
    C1.Web.Api.LicenseDetector, C1.Web.Api
    C1.Web.Api.Pdf.LicenseDetector, C1.Web.Api.Pdf
    C1.Web.Api.Report.LicenseDetector, C1.Web.Api.Report
    C1.Win.BarCode.C1BarCode, C1.Win.BarCode.4.5.2
    C1.Win.C1Chart.C1Chart, C1.Win.C1Chart.4.5.2
    C1.Win.C1Chart3D.C1Chart3D, C1.Win.C1Chart3D.4.5.2
    C1.Win.C1Document.C1PdfDocumentSource, C1.Win.C1Document.4.5.2
    C1.Win.C1Document.C1SSRSDocumentSource, C1.Win.C1Document.4.5.2
    C1.Win.Chart.FlexChart, C1.Win.FlexChart.4.5.2
    C1.Win.Chart.FlexPie, C1.Win.FlexChart.4.5.2
    C1.Win.Chart.FlexRadar, C1.Win.FlexChart.4.5.2
    C1.Win.Chart.Interaction.C1RangeSlider, C1.Win.FlexChart.4.5.2
    C1.Win.Chart.Sunburst, C1.Win.FlexChart.4.5.2
    C1.Win.Chart.TreeMap, C1.Win.FlexChart.4.5.2
    C1.Win.FlexReport.C1FlexReport, C1.Win.FlexReport.4.5.2

    But still i am getting this dialog will not be shown if you rebuild your application using a licensed version of the product even after rebuilding the app. This app is provided as sample app.

    Error through webapi service
    <Error>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>Exception has been thrown by the target of an invocation.</ExceptionMessage>
    <ExceptionType>System.Reflection.TargetInvocationException</ExceptionType>
    <StackTrace> at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at C1.Util.Licensing.LicenseHelper.GetLicenseInfo(Type type) at C1.Web.Api.Report.Models.FlexReport..ctor(C1FlexReport report, String path) at C1.Web.Api.Report.ReportProvider.CreateReport(String providerName, String path, NameValueCollection args) at C1.Web.Api.Report.ReportProviderManager.CreateReport(String fullPath, NameValueCollection args) at C1.Web.Api.Report.ReportRequestContext.TryLoadReport() at C1.Web.Api.Report.ReportController.<>c__DisplayClass10_0.<GetInstances>b__0() at C1.Web.Api.C1ApiController.ProcessAction(Func`1 func) at C1.Web.Api.Report.ReportController.GetInstances(String reportPath) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</StackTrace>
    <InnerException>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>A valid license cannot be granted for the type C1.Web.Api.Report.LicenseDetector. Contact the manufacturer of the component for more information.</ExceptionMessage>
    <ExceptionType>System.ComponentModel.LicenseException</ExceptionType>
    <StackTrace> at C1.Util.Licensing.ProviderInfo.Validate(Type type, Object instance, Boolean showNagDialog, Boolean useAppDomainTest) at C1.Util.Licensing.BaseLicenseDetector.Validate(Type type) at C1.Util.Licensing.BaseLicenseDetector..ctor() at C1.Web.Api.Report.LicenseDetector..ctor()</StackTrace>
    </InnerException>
    </Error>
  • Replied 23 August 2020, 6:59 pm EST

    Hello Satyam,
    Previously, you were using the trial version. Now, you have purchased the license and as we understand, you had activated your machine using the C1 serial key. For this, you need to delete the bin and obj folder. Build the project again and run.
    Please share the application if the issue persists.

    Regards,
    Manish Gupta
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels