Licensing a standard library project

Posted by: kp on 7 October 2020, 8:19 pm EST

  • Posted 7 October 2020, 8:19 pm EST

    I have an issue figuring out how to license a standard library project, while I have a working standalone IOS project without issues.

    For now im just testing the IOS part but im getting a "failed to generate license for component studio for Xamarin Details: no license" error.

    I have an app key created from the namespace of the project, placed in a "license file" as a constant string.

    the code I have in the Xamarin app.xaml.cs class is in the first image and the code I have for the appdelegate.cs class of iOS is in the second image.


    This should follow the walkthrough from the licensing page on the website:
    https://www.grapecity.com/licensing/generate-app-key


    Could I get a pointer on what im missing?

    The packages I use are also in images 3 for the forms part and a bunch on the IOS part, partly because it added both the IOS and Forms variants when I told it to add the IOS libraries.
  • Replied 12 October 2020, 1:53 am EST

    Hi KP,

    =>"failed to generate license for component studio for Xamarin Details: no license"

    You are getting an error while generating the License Key for a Xamarin application, can you please confirm how you generated the key using in the "License file" of your application?


    Thanks
  • Replied 12 October 2020, 7:29 pm EST

    I generate a key by copy pasting the namespace into the "create apply" field on my account here(same as I did for my IOS only app) and then I copy the key to a file named license as a constant string. Then I use the above c1.ios.licensemanager.key = the key from the license file(remember it is just a file containing a constant not an actual generated license file". I do the same for the Xamarin forms part of the project except the license manager is the forms one.

    In my iOS only app I just have the key copied into the license manager, since it is only used once.
  • Marked as Answer

    Replied 14 October 2020, 1:13 am EST

    Hi KP

    Can you please try using the GrapeCity License Manager for licensing your project. For referece please have a look at the below documentaion link
    https://www.grapecity.com/componentone/docs/license/online-license/xamarin-app.html

    Please let me know if you need any other help.

    Thanks
  • Replied 18 March 2021, 1:34 am EST

    Hi KP

    Can you please share a small sample replicating the issue? also if possible please share the screenshot of the error you are getting from the Visual Studio terminal.

    Thanks
Need extra support?

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

Learn More

Forum Channels