Activities of "zhongfang"

Waiting for you good news!

Any progress?

Oh, I add above global features. Then I rebuild the solutions. Run ef migrations add again. still got nothing.

[DependsOn(typeof(CmsKitProDomainSharedModule))]
    public class Id5DomainSharedModule : AbpModule
    {
        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            Id5GlobalFeatureConfigurator.Configure();
            Id5ModuleExtensionConfigurator.Configure();
        }

        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.AddEmbedded<Id5DomainSharedModule>();
            });

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<Id5Resource>("en")
                    .AddBaseTypes(typeof(AbpValidationResource))
                    .AddVirtualJson("/Localization/Id5");

                options.DefaultResourceType = typeof(Id5Resource);
            });

            Configure<AbpExceptionLocalizationOptions>(options =>
            {
                options.MapCodeNamespace("Id5", typeof(Id5Resource));
            }); 
            
            GlobalFeatureManager.Instance.Modules.CmsKit(cmsKit =>
            {
                cmsKit.EnableAll();
            });

            GlobalFeatureManager.Instance.Modules.CmsKitPro(cmsKitPro =>
            {
                cmsKitPro.EnableAll();
            });
        }
public partial class AddTables_CmsKitPro_Enabled : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {

        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {

        }
    }

Yes, I call InsertAsync in try catch.

I must InsertAsnyc first, then continue with throw exception.

How to do?

After I upgrade to the 5.1.3. It is OK, now.

I found many result articles by search Google and Baidu. And I tried out them. But I failed.

Now, you resolved my question.

Thank you.

Maybe you can add above content to UserGuide.

It is working now. Tks!

If I open above url via browser, I got this error:

{"error":{"code":null,"message":"对不起,在处理你的请求期间,产生了一个服务器内部错误!","details":null,"data":{"ActivatorChain":"Volo.AbpIo.NuGet.Controllers.AbpIoNugetIndexController"},"validationErrors":null}}

/usr/share/dotnet/sdk/6.0.101/NuGet.targets(130,5): error : Unable to load the service index for source https://nuget.abp.io/d7db9f02-ecc5-486c-bcdf-*********/v3/index.json.

Answer

I created a module solution named Yee.EasyComment. Use 'dotnet build' to build all projects. Then I use 'dotnet pack' to build all nupkg packages. Then I push all packages to Nexus.

I reference above module in an solution created by ABP Suite. When I start the project in Debug mode via VS 2022, I got below exception

[13:30:33 INF] Starting web host.
[13:30:34 FTL] Host terminated unexpectedly!
System.IO.DirectoryNotFoundException: C:\Users\David\.nuget\packages\yee.easycomment.blazor\2021.12.913\staticwebassets\   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)
   at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.<>c.<UseStaticWebAssetsCore>b__1_0(String contentRoot)
   at Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider..ctor(StaticWebAssetManifest manifest, Func`2 fileProviderFactory)
   at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssetsCore(IWebHostEnvironment environment, Stream manifest)
   at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment environment, IConfiguration configuration)
   at Microsoft.AspNetCore.WebHost.<>c.<ConfigureWebDefaults>b__9_0(WebHostBuilderContext ctx, IConfigurationBuilder cb)   at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass9_0.<ConfigureAppConfiguration>b__0(HostBuilderContext context, IConfigurationBuilder builder)
   at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at Yee.Change.Brain.Blazor.Program.Main(String[] args) in D:\dev\gitlab\brain\src\Yee.Change.Brain.Blazor\Program.cs:line 32

D:\dev\gitlab\brain\src\Yee.Change.Brain.Blazor\bin\Debug\net6.0\Yee.Change.Brain.Blazor.exe (进程 36008)已退出,代码为 1。
Showing 111 to 120 of 136 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.1.0-preview. Updated on December 08, 2025, 08:24
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.