Dear Sir,
We are having issues deploying a multi-layered solution on IIS.
Below with our current project structure:
Have taken the following steps:
- Ran abp install-libs on our projects
- Ran dotnet publish on the blazor project
- openiddict.pfx cert have been generated and put in the root folder.
- Successfully ran dbmigrator and ensured our tables have been created correctly in sql.
- Ensure the connection string for our db is working (by successfully running dbmigrator).
When running our blazor project via running the .exe file in the published folder, we managed to reach the first page of our project.
Our project directs users to the login page if a user is not logged in user.
However, after login / attempting to create a new user, we will reach an error 500 page (this was not created by our team).
Further inspection on the console logs show the following error:
It seems there might be some missing volo dependencies that were not packaged correctly during the publish.
Can you please assist us on this?
#Error Start
[13:56:57 ERR] An unhandled exception has occurred while executing the request.
Volo.Abp.AbpException: Could not find file '/_content/Volo.Abp.AspNetCore.Components.Web.BasicTheme/libs/abp/css/theme.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.AddFileToBundle(IBundlerContext context, StringBuilder bundleContentBuilder, 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.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) 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, List`1 bundleFiles)
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.Components.Server.Theming.Bundling.BlazorServerComponentBundleManager.GetStyleBundleFilesAsync(String bundleName)
at Volo.Abp.AspNetCore.Components.Web.Theming.Bundling.AbpStyles.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView par
#Error End**
Regards, Daniel Gan
1 Answer(s)
-
0
Hi,
Can you try run the
abp install-libs
command to restore the NPM packages?