1、自动生成项目后迁移数据库如果遇到max key length is 767 bytes
mysql5.6下用如下脚本解决不了问题
set global innodb_file_format = BARRACUDA;
set global innodb_large_prefix = ON;
直接换成mysql5.7.36不用任何设置就可以迁移成功。
2、An error occurred during the ABP remote HTTP request ----abp官方自助创建的项目,一定要记得修改项目启动为多项目启动,所有web项目建议都设置为多项目启动(XXX.HttpApi.Host、XXX.IdentityServer、XXX.Web)。
如果只启动例如web后缀的MVC项目,会提示目标计算机积极拒绝。详细错误如下:
2022-08-16 16:34:36.300 +08:00 [INF] Initialized all ABP modules.
2022-08-16 16:34:36.418 +08:00 [INF] Application started. Press Ctrl+C to shut down.
2022-08-16 16:34:36.419 +08:00 [INF] Hosting environment: Development
2022-08-16 16:34:36.419 +08:00 [INF] Content root path: D:\githubRepository\OTAHM\src\OTAHM.Web\
2022-08-16 16:34:36.468 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44313/ - -
2022-08-16 16:34:37.449 +08:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
2022-08-16 16:34:37.465 +08:00 [INF] Start processing HTTP request GET "https://localhost:44365/api/abp/application-configuration?api-version=1.0"
2022-08-16 16:34:37.467 +08:00 [INF] Sending HTTP request GET "https://localhost:44365/api/abp/application-configuration?api-version=1.0"
2022-08-16 16:34:41.803 +08:00 [ERR] An unhandled exception has occurred while executing the request.
Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (由于目标计算机积极拒绝,无法连接。 (localhost:44365)) See the inner exception for details.
---> System.Net.Http.HttpRequestException: 由于目标计算机积极拒绝,无法连接。 (localhost:44365)
---> System.Net.Sockets.SocketException (10061): 由于目标计算机积极拒绝,无法连接。
3、AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'Basic.Global'!
在项目目录(XXX.web)下运行:abp install-libs