"The license key is not valid" on 6.0-alpine

Stimulsoft Reports.WEB discussion
Post Reply
anjung
Posts: 11
Joined: Sun Nov 15, 2020 12:10 pm

"The license key is not valid" on 6.0-alpine

Post by anjung »

Trying to start alpine docker images with Stimulsoft.Reports.Web.NetCore 2022.2.6

StiLicense.Key = "..."
fails on 6.0-alpine but works with 6.0-jammy

What kind of crypto magic are you using in there^^ this may be openssl related

== Docker File Base ==

FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS base
COPY ./fonts ~/.fonts
RUN apk --no-cache add fontconfig && fc-cache -f
RUN apk --no-cache add libgdiplus --repository https://alpine.global.ssl.fastly.net/al ... e/testing/
WORKDIR /app
EXPOSE 80
...
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: "The license key is not valid" on 6.0-alpine

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#7191
Lech Kulikowski
Posts: 6199
Joined: Tue Mar 20, 2018 5:34 am

Re: "The license key is not valid" on 6.0-alpine

Post by Lech Kulikowski »

Hello,

Please send us your request with a detailed description on support@stimulsoft.com.

Thank you.
anjung
Posts: 11
Joined: Sun Nov 15, 2020 12:10 pm

Re: "The license key is not valid" on 6.0-alpine

Post by anjung »

with the gdiplus dependency gone,
this is a fully working base image for stimulsoft netcore

Code: Select all

FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS base
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
COPY ./fonts /usr/share/fonts
RUN apk --no-cache add fontconfig tzdata icu-libs icu-data-full && fc-cache -f
WORKDIR /app
EXPOSE 80
thanks
Last edited by anjung on Sun Sep 04, 2022 11:32 am, edited 1 time in total.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: "The license key is not valid" on 6.0-alpine

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: "The license key is not valid" on 6.0-alpine

Post by Max Shamanov »

Hello

The Alpine Linux is very lightweight and miss some impostant packages.
  • By default, DOTNET_SYSTEM_GLOBALIZATION_INVARIANT is set to True, our tool need this proerty set to false.
  • The libgdiplus package is not installed.
  • No fonts are installed.
On our tests the Dockerfile is next:

Code: Select all

FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS base
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
RUN apk update
RUN apk add --no-cache --upgrade bash
RUN apk add libc-dev --update-cache

# libgdiplus necessary for Reporting!
RUN apk add libgdiplus-dev --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing
RUN apk add libx11-dev --update-cache

# Fonts necessary for Reporting!
RUN apk add msttcorefonts-installer
RUN update-ms-fonts

WORKDIR /app
EXPOSE 80

Thank you.
vjnjcjus
Posts: 2
Joined: Wed Jan 04, 2023 5:41 pm

Re: "The license key is not valid" on 6.0-alpine

Post by vjnjcjus »

Hi, i'm trying to test a console application in dotnet core 3.1 and i'm using ubuntu 20.04 x64, when I start the application it show me the exception "The license key is not valid!"

I've tried to install libgdiplus but get the same result.

Is there a sample project or documentation in dotnet core?
Lech Kulikowski
Posts: 6199
Joined: Tue Mar 20, 2018 5:34 am

Re: "The license key is not valid" on 6.0-alpine

Post by Lech Kulikowski »

Hello,

Please send us a request on support@stimulsoft.com.

Thank you.
vjnjcjus
Posts: 2
Joined: Wed Jan 04, 2023 5:41 pm

Re: "The license key is not valid" on 6.0-alpine

Post by vjnjcjus »

Lech Kulikowski wrote: Wed Jan 04, 2023 7:21 pm Hello,

Please send us a request on support@stimulsoft.com.

Thank you.
I've sent you a project with the license we have.
Lech Kulikowski
Posts: 6199
Joined: Tue Mar 20, 2018 5:34 am

Re: "The license key is not valid" on 6.0-alpine

Post by Lech Kulikowski »

Hello,

Ok. We will check and will reply to you by email.
Post Reply