Activities of "rsg160"

Hi all, this time we are using a module template to which we want to apply some integration tests, create all the file structure as recommended in the documentation for testing an application service and we are getting the error you can see below, it seems to be happening in the SeedTestData method of the "TestBaseModule" but we can't figure out more than that, can you point us in the right direction?

SA.Modules.Reports.EntityFrameworkCore.Applications.Reports.EfCoreReportAppService_Tests.Should_Get_List_Of_Reports Source: ReportAppService_Tests.cs line 24 Duration: 1 ms

Message:  Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module SA.Modules.Reports.ReportsTestBaseModule, SA.Modules.Reports.TestBase, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null: Value cannot be null. (Parameter 'source'). See the inner exception for details. ---- System.ArgumentNullException : Value cannot be null. (Parameter 'source')

Stack Trace:  ModuleManager.InitializeModules(ApplicationInitializationContext context) AbpApplicationBase.InitializeModules() AbpApplicationWithExternalServiceProvider.Initialize(IServiceProvider serviceProvider) AbpIntegratedTest1.ctor() ReportsTestBase1.ctor() ReportsApplicationTestBase1.ctor() ReportAppService_Tests1.ctor() line 18 EfCoreReportAppService_Tests.ctor() RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) ----- Inner Stack Trace ----- ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector) PermissionDataSeeder.SeedAsync(String providerName, String providerKey, IEnumerable1 grantedPermissions, Nullable1 tenantId) PermissionDataSeedContributor.SeedAsync(DataSeedContext context) DataSeeder.SeedAsync(DataSeedContext context) AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) CastleAbpMethodInvocationAdapter.ProceedAsync() UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) <<SeedTestData>b__0>d.MoveNext() line 61 --- End of stack trace from previous location --- TaskExtensions.WaitAndUnwrapException(Task task) <>c__DisplayClass15_0.<Run>b__0(Task t) ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- TaskExtensions.WaitAndUnwrapException(Task task) AsyncContext.Run(Func1 action) AsyncHelper.RunSync(Func1 action) ReportsTestBaseModule.SeedTestData(ApplicationInitializationContext context) line 57 ReportsTestBaseModule.OnApplicationInitialization(ApplicationInitializationContext context) line 52 OnApplicationInitializationModuleLifecycleContributor.Initialize(ApplicationInitializationContext context, IAbpModule module) ModuleManager.InitializeModules(ApplicationInitializationContext context)

Question

"Hello, I have a solution that is working perfectly. I need to be able to do 'impersonation,' so I followed all the recommended configuration steps from the documentation, and it works well locally. However, when I deploy it to Azure and try to impersonate a user, I get the following message: 'The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.' I’ve been reviewing the configurations, and they seem correct. I should clarify that once deployed on Azure, the application uses an ADFS server for SSO authentication. I would appreciate it if you could guide me on which configurations I should check. Best regards."

It's working now , I applied all the the advices you guys provided also add to the project one bundle contributor which is decorated with

[DependsOn(typeof(BootstrapScriptContributor))] [DependsOn(typeof(DatatablesNetBs5ScriptContributor))] [DependsOn(typeof(DatatablesNetScriptContributor))] [DependsOn(typeof(LeptonXGlobalScriptContributor))]

Thanks

hi

this error start when it is published to azure dev environment.

Ensure your wwwroot/libs folder is up to date in Azure.

It has to be the same as your local. You can check it.

Thanks

There is no wwwroot/libs in my released project. I assume it is embedded within some project dll.

I deleted the yarn.lock and runed again, but still happening , also I want to clarify this project is running fine un mi local environment, this error start when it is published to azure dev environment. Also modified abp.resourcemapping.js file and added the mapping section.

{ "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~4.0.5", "@abp/aspnetcore.mvc.ui.theme.shared": "9.0.4", "@volo/cms-kit-pro.admin": "~9.0.4", "@abp/signalr": "~9.0.4", "@volo/account": "~9.0.4", "@volo/audit-logging": "~9.0.4", "@volo/identity": "~9.0.4", "@volo/language-management": "~9.0.4", "@abp/datatables.net": "~9.0.4"

} }

Hi berkansasmaz, thanks for the response. I did that and still happening, in the log file I have this error :

2025-02-12 13:09:16.863 -05:00 [INF] Bundling __bundles/LeptonX.Global.BAAE664F6DFC55537E6DAB94FBB1F4E1.js (49 files) 2025-02-12 13:09:16.870 -05:00 [INF] > Minified /libs/abp/core/abp.js (25271 bytes -> 10313 bytes) 2025-02-12 13:09:16.987 -05:00 [INF] > Minified /libs/jquery/jquery.js (296030 bytes -> 87931 bytes) 2025-02-12 13:09:16.991 -05:00 [INF] > Minified /libs/abp/jquery/abp.jquery.js (13489 bytes -> 5683 bytes) 2025-02-12 13:09:17.007 -05:00 [INF] > Minified /libs/jquery-validation/jquery.validate.js (54237 bytes -> 25346 bytes) 2025-02-12 13:09:17.011 -05:00 [INF] > Minified /libs/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js (19820 bytes -> 5883 bytes) 2025-02-12 13:09:17.016 -05:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 172.1224ms 2025-02-12 13:09:17.017 -05:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2025-02-12 13:09:17.017 -05:00 [ERR] An exception was thrown attempting to execute the error handler. Volo.Abp.AbpException: Could not find file '/libs/datatables.net/js/jquery.dataTables.js' at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.Bundle(IBundlerContext context) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.<>c__DisplayClass17_0.<AddToBundleCache>b__0() at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.AddToBundleCache(String bundleName, IBundler bundler, List1 bundleFiles) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetScriptBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperScriptService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService`2.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.

  • ABP Framework version: v9.0.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • The project was running properly on version 8.2.0. It was upgraded to version 9.0.4, and the following modifications were made:

1 -> <TargetFramework>net8.0</TargetFramework> updated to 9 2 -> The "abp update" command was run. 3 -> All NuGet packages were updated. 4 -> Replaced "UseStaticFiles" with "MapStaticAssets" The project compiles correctly and runs well locally. However, once deployed in the development branch, it breaks and shows messages in the browser console. The error occurs in all the web projects: (web/ portal & ids. Can you guys provide some advice on how to solve it?

Same issue here

can you please elaborate, a little bit more, please? We aren't using any abp packages, only Volo.Abp and leptonX 2.3.2

Showing 1 to 10 of 14 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20