Open Closed

Cannot Build 100% New Module Project - No UI -- Missing Blazorise.Server nuget package #1670


User avatar
0
jward01 created
  • ABP Framework version: v4.4.0

  • UI type: None

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): Module with no UI

  • Exception message and stack trace: Cannot find package {{ModuleName}}.Blazorize.Server

  • Steps to reproduce the issue:"

    1. Ensure CLI and ABP Suite are both version 4.4.0 (not pre-release)
    1. Create a new module Solution with NO UI
    1. Build the new Module App Soltion
    1. Error will appear for missing package {{moduleName}}.Blazorize.Server cannot be found

I am under the impression I created a Module with No UI. Now I see that it is looking for a Blazorize Module? I am confused to why it will not build. I have done 0 modifications and it will not build


12 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will check it, thanks.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    https://github.com/abpframework/abp/pull/9760 we will fix it. and your ticket returned.

  • User Avatar
    0
    jward01 created

    Hi

    https://github.com/abpframework/abp/pull/9760 we will fix it. and your ticket returned.

    Hello! so this is fixed? is there anything i need to do to implement the fix?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can try to remove Blazor.Server.Host project from your solution.

  • User Avatar
    0
    jward01 created

    You can try to remove Blazor.Server.Host project from your solution.

    I have done this and not the application does not run at all. It builds fine, but when i run it i get 500 errrors 'application errors'

    Is there anything I need to do to get the modules running?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please try to update the database in your projects.

    host\Aeonic.Module.Reviews.IdentityServer>dotnet ef database update
    host\Aeonic.Module.Reviews.HttpApi.Host>dotnet ef database update
    
     An error occurred using the connection to database 'Reviews_Main' on server 'localhost'.
    2021-08-05 20:10:12.863 -04:00 [FTL] Application startup exception
    Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Aeonic.Module.Reviews.ReviewsIdentityServerModule, Aeonic.Module.Reviews.IdentityServer, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null: Cannot open database "Reviews_Main" requested by the login. The login failed.
    Login failed for user 'DESKTOP-GTS0TLK\Jeff-Office-PC'.. See the inner exception for details.
     ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot open database "Reviews_Main" requested by the login. The login failed.
    Login failed for user 'DESKTOP-GTS0TLK\Jeff-Office-PC'.
    
  • User Avatar
    0
    jward01 created

    Thanks, I have done this and now I am able to run the Aeonic.Module.Reviews.HttpApi.Host project which successfully shows swagger API Docs.

    I am not able to run the other 'host' projects:

    * IdentityServer * Blazor.Server.Host

    Four questions:

    1. Am I only supposed to be able to run the swagger project?
    2. Is it an error that I cannot run the IdentityServer project, or is that by design?
    3. Will the migrations be created automatically after each time I create a new Entity using ABP Suite? And I simply need to update the database as you mentioned? Or will I need to add the migration and update it manually each time?
    4. What is the purpose of the Blazor.Server.Host project?

    Thanks!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please remove Blazor.Server.Host project from your solution.

    Here is document of module solution. https://docs.abp.io/en/commercial/latest/startup-templates/module/solution-structure

    I am not able to run the IdentityServer

    What's the error?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Blazor.Server.Host is the UI project just like the Web. You can use it to test your module.

  • User Avatar
    0
    jward01 created

    Blazor.Server.Host is the UI project just like the Web. You can use it to test your module.

    I selected "do not include UI", so i am confused why this was included in the template

    What's the error?

    It is a 500 error, application error, now that i run it again it is not erroring. Please see the video. https://drive.google.com/file/d/1ByfhoiqkpyQMsoFU4e049Zo7rg1CP0s0/view?usp=sharing

    In the video the startup is VERY VERY slow, it takes 10 - 12 minutes to load identity server. Do you know why this is? my computer is very fast too: Computer stats here

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I selected "do not include UI", so i am confused why this was included in the template

    We will fix this. See https://support.abp.io/QA/Questions/1670/Cannot-Build-100-New-Module-Project---No-UI----Missing-BlazoriseServer-nuget-package#answer-dd7405cb-4d99-3d07-60c9-39fe2b3b6cce

    In the video the startup is VERY VERY slow, it takes 10 - 12 minutes to load identity server. Do you know why this is? my computer is very fast too:

    Are you setup Redis? Please check your app logs to see why it so slowly.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35