Starts in:
0 DAY
12 HRS
55 MIN
55 SEC
Starts in:
0 D
12 H
55 M
55 S
Open Closed

Unable to Installing LeptonX theme #4778


User avatar
0
mohsalah created

We are trying to install LeptonX theme instead of the default LeptonXLite using abp cli, when I try to execute the command using my commercial account: abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX I got the following result with error : "error: Package 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' is incompatible with 'all' frameworks in project 'C:\MyProject' " although it setups the required code to use the new theme but it did not install the package dll Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX

Here is the entire result:

[11:28:27 INF] ABP CLI (https://abp.io) [11:28:29 INF] Installing 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' package to the project 'MainApp.Web'... Determining projects to restore... Writing C:\Users\mohda\AppData\Local\Temp\tmp641.tmp info : Adding PackageReference for package 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' into project 'C:\Users\mohda\Documents\NourSoft\Project\PlatformGitHub\eplatform-front\src\MainApp.Web\MainApp.Web.csproj'. info : Restoring packages for C:\Users\mohda\Documents\NourSoft\Project\PlatformGitHub\eplatform-front\src\MainApp.Web\MainApp.Web.csproj... info : GET https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json info : CACHE https://nuget.abp.io/a7f0a654-d40f-4b97-a9f6-c53b5bdfee6c/v3/package/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json info : CACHE https://nuget.devexpress.com/gyycK4CBuUWcSLdP4vnRpZC4pg87mWe7Jc3z1XWdz7vmMlRDCE/api/FindPackagesById()?id='Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX'&semVerLevel=2.0.0 info : GET https://www.myget.org/F/blazorise/api/v3/flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json info : NotFound https://www.myget.org/F/blazorise/api/v3/flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json 439ms info : NotFound https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json 934ms error: NU1102: Unable to find package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX with version (>= 6.0.2) error: - Found 58 version(s) in ABP Commercial NuGet Source [ Nearest version: 2.2.0-preview20230328 ] error: - Found 0 version(s) in DevExpress 21.2 Local error: - Found 0 version(s) in Microsoft Visual Studio Offline Packages error: - Found 0 version(s) in Text Control Offline Packages error: - Found 0 version(s) in C:\Program Files\dotnet\library-packs error: - Found 0 version(s) in WebRequest error: - Found 0 version(s) in nuget.org error: - Found 0 version(s) in DevExpress MAUI error: - Found 0 version(s) in BlazoriseMyGet error: Package 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' is incompatible with 'all' frameworks in project 'C:\Users\mohda\Documents\NourSoft\Project\PlatformGitHub\eplatform-front\src\MainApp.Web\MainApp.Web.csproj'. [11:28:48 INF] Successfully installed.

  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

17 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi,

    With 2.0.0 release, LeptonX theme is using net7.0. I guess your project is net6.0. So you need to specify the compatible version when adding the LeptonX package.

    abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX -v 1.0.3

  • User Avatar
    0
    mohsalah created

    Hi,

    With 2.0.0 release, LeptonX theme is using net7.0. I guess your project is net6.0. So you need to specify the compatible version when adding the LeptonX package.

    abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX -v 1.0.3

    I already tried this but did not work. Anyway I installed the theme manually

  • User Avatar
    0
    alper created
    Support Team Director

    thanks for the feedback

  • User Avatar
    0
    mohsalah created

    The theme works fine only on my machine but if I publish the site using Visual Studio or someone else did GIT pull the theme does not appear on his machine or on the published server! they got the following errors in their browser console:

    Can you help please?

  • User Avatar
    0
    alper created
    Support Team Director

    Because it uses localhost:7011 as the production server address and it's your local development address. you need to make some changes to the production environment.

    For instance; SelfUrl, BaseUrl in the appsettings.json file. Also; these database fields => OpenIddictApplications.RedirectUris , OpenIddictApplications.ClientUris , OpenIddictApplications.PostLogoutRedirectUris.

  • User Avatar
    0
    mohsalah created

    Because it uses localhost:7011 as the production server address and it's your local development address. you need to make some changes to the production environment.

    For instance; SelfUrl, BaseUrl in the appsettings.json file. Also; these database fields => OpenIddictApplications.RedirectUris , OpenIddictApplications.ClientUris , OpenIddictApplications.PostLogoutRedirectUris.

    ِAlready changed SelfUrl, BaseUrl

    It has nothing to do with these variables, I just published the project locally with a different port without I changed these variables and it works fine.

    Further more I took this publish that works fine on my machine and moved it to the server as a new publish but it shows the same problem the new theme does not show! How come?! It seems there is something related to the machine itself not URLs

  • User Avatar
    0
    alper created
    Support Team Director

    Did you change the database settings

    • OpenIddictApplications.RedirectUris ,
    • OpenIddictApplications.ClientUris ,
    • OpenIddictApplications.PostLogoutRedirectUris
  • User Avatar
    0
    mohsalah created

    Did you change the database settings

    • OpenIddictApplications.RedirectUris ,
    • OpenIddictApplications.ClientUris ,
    • OpenIddictApplications.PostLogoutRedirectUris

    No I did not. Where are these settings? I cannot find them in AbpSettings table BTW all workstations including my workstation and server connect to the same database so I still do not think it has something to do with these variables.

  • User Avatar
    0
    alper created
    Support Team Director

    These are fields in OpenIddictApplications table.

    • RedirectUris
    • ClientUris
    • PostLogoutRedirectUris
  • User Avatar
    0
    mohsalah created

    These are fields in OpenIddictApplications table.

    • RedirectUris
    • ClientUris
    • PostLogoutRedirectUris

    These are the only fields in OpenIddictApplications table that we have, I changed for the web application record only but still the same issue:

  • User Avatar
    0
    alper created
    Support Team Director

    as you see these remained as localhost. you need to change these address according to your prod domain

  • User Avatar
    0
    alper created
    Support Team Director

    and restart your app to apply the changes

  • User Avatar
    0
    mohsalah created

    as you see these remained as localhost. you need to change these address according to your prod domain

    I changed them and restart the app but still have the same issue!

  • User Avatar
    0
    alper created
    Support Team Director

    @maliming can you help us finding the issue

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    they got the following errors in their browser console:

    What are the related logs of the backend app?

  • User Avatar
    0
    mohsalah created

    hi

    they got the following errors in their browser console:

    What are the related logs of the backend app?

    It shows no error in the logs.txt file.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    How can I reproduce your problem on my computer?

    Can you share a simple project? liming.ma@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06