Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LicenseChecker is null problem #5624

Closed
omerozulku opened this issue Jul 19, 2024 · 4 comments
Closed

LicenseChecker is null problem #5624

omerozulku opened this issue Jul 19, 2024 · 4 comments

Comments

@omerozulku
Copy link

I’m developing my component library based on blazorise such as library project.

I add reference this library to my blazor server app project. I’m developing chart componet on class library.

When I use this component on server app project I take an exception like blazoriselicensechecker is null.

But I give my blazorise token to blazorise service config in server app program.cs.

How can I send my license info to class library?

@omerozulku omerozulku changed the title LicenseChecker ğrobşem LicenseChecker is null problem Jul 19, 2024
@stsrki
Copy link
Collaborator

stsrki commented Jul 20, 2024

Hello @omerozulku

How do you use Blazorise in your project? Usually, all you need to do is register all internal Blazorise services by calling:

builder.Services
    .AddBlazorise()
    .AddBootstrap5Providers();

Also, can you tell us more about your project, and how you plan to create your own component library?

@omerozulku
Copy link
Author

I register all service blazorise like this:

builder.Services .AddBlazorise(options => { options.ProductToken = "******" options.Immediate = true; }) .AddBootstrap5Providers() .AddFontAwesomeIcons() .AddLoadingIndicator();

I have 2 project such as one project blazor server app, one project class library. I am developing my own blazor component by using blazorise.

I add class library to blazor server app project like project reference.

I register all blazorise service in blazor server app project. If ı use blazorise chart object in my blazor server app project there is no problem but when I use blazor chart object in component (class library) project and reference my own component based on blazorise chart I take error (blazorise license checker is null).

1-) Blazor Server App
image

2-) Class Library (I add razor component to this project for use other server app project)
image

3-) Blazor server app service registering
image

Copy link
Contributor

Hello @omerozulku, thank you for your submission. The issue was labeled "Status: Repro Missing", as you have not provided a way to reproduce the issue quickly. Most problems already solve themselves when isolated, but we would like you to provide us with a reproducible code to make it easier to investigate a possible bug.

@David-Moreira
Copy link
Contributor

Hello @omerozulku we've patched this particular check where it makes the best effort to not throw any exception related to this particular service missing, it will be live on v1.6.1

#5648

I am closing this for now, feel free to reopen if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants