Activities of "zhongfang"

OK. I decide to use Postgre SQL. tks.

So, I change from MySQL to PostgreSQL is the best way? My project is still in private with less than 10 active users.

MySQL

[04:17:50 INF] Creating initial migration...
[04:17:51 INF] Creating initial migrations...
[04:18:00 ERR] Creating initial migrations process is failed! Details:
Build started...
Build succeeded.
Unable to create a 'DbContext' of type 'BlazorOneDbContext'. The exception 'The property 'IdentityPasskeyData.Transports' could not be mapped because it is of type 'string[]', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728


[04:18:00 ERR] Migrations failed! A migration command didn't run successfully.
System.Exception: Migrations failed! A migration command didn't run successfully.
  at async Task Volo.Abp.Cli.Commands.CreateMigrationAndRunMigratorCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)
Unhandled exception. System.Exception: Migrations failed! A migration command didn't run successfully.
   at Volo.Abp.Cli.Commands.CreateMigrationAndRunMigratorCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
   at Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs)
   at Volo.Abp.Studio.Cli.StudioCliService.RunAsync(String[] args)
   at Volo.Abp.Studio.Cli.StudioCliService.RunAsync(String[] args)
   at Volo.Abp.Studio.Cli.StudioCliService.RunAsync(String[] args)
   at Volo.Abp.Studio.Cli.StudioCliService.RunAsync(String[] args)
   at Volo.Abp.Studio.Cli.Program.nhO5N0yAR(Object  )
   at Volo.Abp.Studio.Cli.Program.<Main>(String[] args)
  • Steps to reproduce the issue:
  • Start ABP Studio
  • Update to newest version
  • Create New Solution
  • Run DBMigrator

I have more than twenty solutions with ABP 8.3.4, how to upgrade to ABP 10.0.0?

貌似我的理解有问题哈。不加上那个js,页面按钮全部不工作。现在我用git回退到了ABP Studio最初胜场的App.razor,然后一番折腾,貌似没问题了。回头再来报告。

下边的意见,来自WIndSurf里免费的GPT 5.1,我折腾了48个小时。最后按它的指引,删除了这一句,就搞定了我的Blazor的WebApp的部署。

我觉得你们得重视这件事。你们模板里这样搞,别的ABP用户,真的能成功工作吗?

在 Blazor Web App 模式下,这行会让 blazor.web.js 被 重复加载和初始化,导致电路初始化状态错乱,经常在刷新或 DOM 更新时抛出:

  • Circuit host not initialized
  • startCircuitIfNotStarted
  • refreshRootComponents 相关错误

Nginx 反向代理 (prod-erp2-app.conf) 的配置是针对 /、/_framework/、/loda-signalr-hubs/ 的,整体是按 Blazor Server 的最佳实践写的,目前没有看到会触发这个特定错误的问题,所以根因在前端启动方式,而不是反代。

不再手动加载 _framework/blazor.web.js,让框架自己管理脚本加载和电路初始化。

这样可以避免 同一页面上两次启动 Blazor,按经验这个能解决你现在在 https://app.loda.net 上看到的那串 Circuit host not initialized 异常。

我跟你隆重的反馈第一个问题:

我从.NET 6.0到.NET 8.0,都是自己“想当然的”“优化”了Visual Studio 2022默认生成的Dockerfile

它默认是3步

  • dotnet restore
  • dotnet build
  • dotnet publish 我在后边每一步,都加开关,build的时候就不restore,publish的时候就不要再次build了。

过去的几年,我这个技巧是没有问题的。

但是到了Blazor WebApp这里,就会导致发布之后,没有_framework文件夹。

我取消自己山寨的优化,就搞定了这个问题。

[maliming] said: 你可以先试试Blazor Server, 它和web app差不多. webapp```

那我就要修改这里,改成_framework/blazor.server.js

才适配Blazor.Server?

我们已经用了2年的Blazor Server了。

我刚刚去ChatGPT学习了一下,Blazor Web App才是未来啊。我现在以同样的名字,去ABP Studio生成全新的代码,UI选择Blazor Web App试试?

Showing 1 to 10 of 190 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.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.