- 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?
11 Answer(s)
-
0
Hello rsg160,
Can you run
abp install-libs
in the terminal and try again before deploying the solution? I suspect this step is not working properly when theabp update
command is running. -
0
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_0
2.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary
2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func
1 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, List
1 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. -
0
Hello,
Can you update
abp.resourcemapping.js
in theMyApp.Web
project as follows and try again?module.exports = { aliases: { }, mappings: { "@node_modules/datatables.net/js": "@libs/datatables.net/js/" } };
-
0
hi
Can you share your
packages.json
file?Have npm packages been upgraded to 9.x?
-
0
{ "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"
} }
-
0
-
0
-
0
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
-
0
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. -
0
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
-
0
Closing the issue. Feel free to re-open or create a new issue if you have further questions.