Activities of "LawrenceKwan"

Before building your application on production environment, run the command abp install-libs under Web and IdentityServer projects. That will install and map related nodemodule files under libs folder.

Also verify this by checking file physical location under Release/publish/wwwroot. You can also manually add this files to your server if you are making file system publish.

I tried abp install-libs command , it does not work.

If I directly copy it into web server wwwroot, It works!

The root cause is cannot get the 13 bundle file so it have error. How to fix it? I can get the file in local debug mode

2021-12-03 18:04:03.469 +08:00 [INF] Bundling __bundles/Lepton.Global.ED2A5A964A874690E0F3F98753AF3DD3.css (13 files) 2021-12-03 18:04:03.469 +08:00 [DBG] Bundle files: 2021-12-03 18:04:03.478 +08:00 [INF] Executed page /Account/Login in 1041.6139ms 2021-12-03 18:04:03.478 +08:00 [INF] Executed endpoint '/Account/Login' 2021-12-03 18:04:04.744 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-12-03 18:04:04.744 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-12-03 18:04:04.755 +08:00 [ERR] An unhandled exception has occurred while executing the request. Volo.Abp.AbpException: Could not find file '/libs/abp/core/abp.css'

these are deployment issues apart from the ABP itself. you may encounter the same problems even if you create your own ASP.NET Core project.

Hi albert, I do change the port to 5222 but still have some error. Here are the logs:

2021-12-03 18:00:33.927 +08:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 112.7849ms 2021-12-03 18:00:33.928 +08:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2021-12-03 18:00:33.946 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-12-03 18:00:33.946 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-12-03 18:00:33.948 +08:00 [ERR] An exception was thrown attempting to execute the error handler. Volo.Abp.AbpException: Could not find file '/libs/abp/core/abp.css' 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__DisplayClass16_0.<GetBundleFilesAsync>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.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetStyleBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperStyleService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService2.ProcessAsync(TagHelperContext context, TagHelperOutput output)

Finding: asp .net core app deflaut port is 5000 and 5001. I think the PROD appsetting config json file is missing.

The wrong port case the system cannt work for deployment. I dont config the port to 5000/5001 Here are the config file, any advice on this?

ABP Suite uses the CLI to add module to the main application. So it doesn't matter whether you use the CLI or Suite. If you changed the project names or added extra projects to the module, or removed an existing project it may not work properly.

Yes, I used CLI to add module. Now I am running the entire solution. After I have compiled the solution and I find that I cannot run the abp with out visual studio.

I click the Myproject.IdentityServer.exe, AML.HttpApi.Host.exe and AML.Web.exe but i cannot run properly.

Observation : the web por is pointing to port 5000 and 5001 while in web.config it should be 44367

-There is no web pop up, is it normal?

Can confirm this problem.

This symtom only take place on these conditions:

  1. main project is a tiered project (asp.net core mvc)
  2. a separated module (asp.net core mvc)

You will find that those cshtml in main web project can be compiled at runtime. However, the module web project is not able to be compiled at runtime

Firstly I'm sorry about my first mismatching answer to you. It has been posted by a mistake to this thread.


I am going to call api of different modules, and I saw there is RequestVerificationToken on swagger API, like /api/file-management/file-descriptor/content API

If you send requests via using client proxies, you don't need to get any of token manually. Client proxy handles them.

I find that when I login to admin account, token is valid but
When I logoff, token is invalid that cannot get response.

If your endpoint requires authentication, you won't be able to access that endpoint when you logged out.

Can you share more info about which endpoint you are trying to access with token?

Hi enisn

We have some external workers(software) to access files uploaded by Optical Character Recognition (OCR) . It could be the intranet user. To read the file , it will be downloaded via API on https:{our endpoint}/api/file-management/file-descriptor/content API

I find that when I login to admin account, token is valid but When I logoff, token is invalid that cannot get response.

Showing 1 to 10 of 39 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35