Activities of "cxp920"

Hi Anjali,

Thank you for your prompt response.

The issue happens when I install the module Shared as nuget packages in my plugin module. Were you able to reproduce this scenario? Meaning installing an ABP module (created via ABP Suite) that was transformed into nuget packages into a plugin module, then loading that plugin module in Host.

  • ABP Framework version: v7.3.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi,

I have a tiered application that loads a plugin module called TestModule (created via ABP Suite) in the Program.cs file of the ApiHost and Web projects using the following code:

await builder.AddApplicationAsync<ABPHttpApiHostModule>(options =>
            {
                var env = builder.Environment;
                if (env.IsDevelopment())
                {
                    var path = builder.Configuration.GetValue<string>("PluginsFolderLocalPath");
                    options.PlugInSources.AddFolder(path, SearchOption.AllDirectories);
                }
                else
                {
                    options.PlugInSources.AddFolder(config.Value, SearchOption.AllDirectories);
                }
            });

I also have a separate module called Shared that I use as a nuget package and it is intalled in my plugin module (each project is intalled in the corresponding project in the plugin module, meaning Shared.Application is installed in TestModule.Application, Shared.Application.Contracts is installed in TestModule.Application.Contracts, and so on). These nugets are also installed in the main application in their corresponding project.

The problem is that when running ApiHost, I get the following error:

Host terminated unexpectedly!
System.IO.FileNotFoundException: Could not load file or assembly 'Shared.Application.Contracts, Version=0.4.73.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Shared.Application.Contracts, Version=0.4.73.0, Culture=neutral, PublicKeyToken=null'

If I install Shared.Application.Contracts in ApiHost, this problem disappears and it asks for another package from the Shared project, and so on until most Shared packages are installed in ApiHost. The same issue happens next when running Web.

It seems that by adding a plugin module, the main project does not have access to the dependencies of the module's projects (.dlls).

The documentation on Plugin Modules is very limited. The example given consists on adding a single .dll file as a plugin. I am adding a full module project as 8 .dlls. Is there anything I am missing to make this work? Specifically, I would like to know how to properly add a module as a plugin in a tiered application with other modules as nuget package dependencies.

I am using the getting started "Web Application Development Tutorial " and the application is working. However I am not able to call the appservice from the javascript page or the developer console. When I type in the developer console "camilatest.Books.book.getList({}).done(function (result) { console.log(result); });", I get an error message saying that camilatest is not defined. See attached screen shots.

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

  • ABP Framework version: v4.4
  • UI type:MVC
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
Showing 1 to 3 of 3 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07