And I want to split it for a sevrel layers
if you want , you can add them manually.
But the current layering is simpler
can you share the server log?
Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration or set a default configuration
这不是问题,你可以忽略。
证书问题你可以看看这里的解决方案,目的是让系统信任证书 https://www.cnblogs.com/zinan/p/15853225.html
Hi,
you can run the Maui in release mode and debug it.
HI,
we have to create projects manualy (for example Domain, Domain.Shared and so on)
you don't need to do this.
you can configure csharp proxy in the Web
project
[DependsOn(
......
typeof(XXXServiceContractsModule), //Service Contracts module
typeof(AbpVirtualFileSystemModule) //virtual file system
.....
)]
public class XXXWebModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
// Prepare for static client proxy generation
context.Services.AddStaticHttpClientProxies(
typeof(XXXServiceContractsModule).Assembly,
XXXServiceRemoteServiceConsts.RemoteServiceName // add XXXServiceRemoteServiceConsts class to Contracts project
);
// Include the generated app-generate-proxy.json in the virtual file system
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<XXXWebModule>();
});
}
}
Add generate-proxy.json
config to csproj file
<ItemGroup>
<EmbeddedResource Include="**\*generate-proxy.json" />
<Content Remove="**\*generate-proxy.json" />
</ItemGroup>
Then you can use abp command to generate proxy
BTW, please make the repo private
The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
你的HTTPS证书有问题
如果你使用的是dotnet提供的开发证书,你可以尝试
dotnet dev-certs https --clean
dotnet dev-certs https --trust
You can use the RestService
provided by ABP.
it will add headers(tenantId, access_token, etc) automaticly
https://abp.io/docs/latest/framework/ui/angular/http-requests#restservice