Open Closed

after adding source code for modules in ABP suite, I continually get Could not load file or assembly for these Pro source code modules. I also had the same issue with 5.3.3. #3570


0
[email protected] created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: 6.0.0-rc.2 or 5.3.3
  • UI type:Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace:
  • Steps to reproduce the issue:" just running the application

Application '/LM/W3SVC/2/ROOT' with physical root 'F:\Documents\SourceCode\Keystone\KeyChoices.Abp\app\src\KeyChoices.Blazor' has exited from Program.Main with exit code = '1'. First 30KB characters of captured stdout and stderr logs: [13:24:06 INF] Starting web host. [13:24:09 FTL] Host terminated unexpectedly! System.IO.FileNotFoundException: Could not load file or assembly 'Volo.Abp.Account.Pro.Public.Application.Contracts, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'Volo.Abp.Account.Pro.Public.Application.Contracts, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, RuntimeType type, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at KeyChoices.Blazor.Program.Main(String[] args) in F:\Documents\SourceCode\Keystone\KeyChoices.Abp\app\src\KeyChoices.Blazor\Program.cs:line 36


13 Answer(s)
  • 0
    [email protected] created

    Good afternoon. Just checking back in, many other questions have been answered, thank you!

  • 0
    maliming created
    Support Team

    hi

    How to reproduce this probem in a brand new template project?

    Please share some steps thanks

  • 0
    [email protected] created

    just add source code for Pro identity.

    my steps...

    create a new module or use an existing one. this happened in my existing 5.3.3 module and I could not resolve it. So I upgraded to 6rc2, created a brand-new module, then chose to add source code for Pro Identity and the theme I get the message shown. Tried multiple times always get the same message

  • 0
    maliming created
    Support Team

    hi

    We will check this, You can download the source code of the module and add the project reference, and depends it manually.

  • 0
    [email protected] created

    I have tried the source code as well projects are referenced correctly, everything builds, the application runs. Same error

  • 0
    maliming created
    Support Team

    hi

    Can you share the project with me? [email protected]

  • 0
    [email protected] created

    Email with a share link sent. Thank you

  • 0
    maliming created
    Support Team

    hi

    hi

    The project file "Keystone.Shared/Keystone.Shared/Keystone.Shared.csproj" was not found.

    created a brand-new module, then chose to add source code for Pro Identity and the theme I get the message shown

    Can you share the brand-new project with your steps?

  • 0
    [email protected] created

    New version sent without any external dependencies. Should just run and give you the error

  • 0
    maliming created
    Support Team

    hi

    I didn't receive the mail, can you confirm?

  • 0
    maliming created
    Support Team

    hi

    Please update your KeyChoices.Abp\app\src\KeyChoices.Blazor\KeyChoices.Blazor.csproj

    This will be fixed in 6.0

    
    <!--    <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="6.0.0-rc.2" />-->
        <ProjectReference Include="..\..\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.OpenIddict\Volo.Abp.Account.Pro.Public.Web.OpenIddict.csproj" />
    
  • 0
    [email protected] created

    Thank you, where do I report bugs? I think I have another one

  • 0
    maliming created
    Support Team

    hi

    You can create a new question, We will refund your question cerdits