Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
- ABP Framework version: v8.3.1
- 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: Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AspNetCore.AbpAspNetCoreModule, Volo.Abp.AspNetCore, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null: An exception was thrown while activating λ:Volo.Abp.AspNetCore.VirtualFileSystem.IWebContentFileProvider -> Volo.Abp.AspNetCore.VirtualFileSystem.WebContentFileProvider -> λ:Volo.Abp.VirtualFileSystem.IVirtualFileProvider -> Volo.Abp.VirtualFileSystem.VirtualFileProvider
- Steps to reproduce the issue:
-
- Created new project using abp studio using multilayered template.
-
- Build and run the project Authserver project normally both in debug and relase mode.
-
- Setup docker environment with docker desktop, wsl2 , ubuntu 24lts
-
- Build docker image with the docker file created by the template.
-
- Run the docker image and im getting this error. I could run the authserver solution in debug and relase mode from my visual studio
Check the docs before asking a question: https://abp.io/docs/latest
6 Answer(s)
-
0
Hello,
Please check similar issue https://abp.io/support/questions/5660/An-exception-was-thrown-while--2023-08-25-123409-activating-VoloAbpAspNetCoreVirtualFileSystemIWebContentFileProvider if it helps you.
Thanks
-
0
Hello this is my docker file
FROM mcr.microsoft.com/dotnet/aspnet:8.0 COPY bin/Release/net8.0/publish/ app/ WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 ENTRYPOINT ["dotnet", "XSenseID.AuthServer.dll"]
This is the command i have used for build -> dotnet publish -c Release -o ./bin/Release/net8.0/publish
-
0
Any update for this ?
-
0
Hello,
In Docker Run command, you has set ASPNETCORE_Environment to Development Can you try with Production ?
Thanks,
-
0
I tried but no luck.
What i additional tried is to comment the virtual file explorer intialization code in the webodule and it moved forward where i had redis connection issue which i can understand.
-
0
Does virtual file system doesnt work with docker ?