-
ABP Framework version: v9.1.0
-
UI Type: Blazor Web App
-
Database System: EF Core SQL Server,
I am deploying a newly created ABP Blazor webapp to a new Azure Web App.
These instructions have been followed:
https://abp.io/docs/latest/solution-templates/layered-web-application/deployment/azure-deployment/azure-deployment?UI=BlazorServer&DB=EF&Tiered=Yes
The DbMigrator has been successfully used to migrate the Azure database
The project is published using Visual Studio using the downloaded Publish Profile from Azure..
After publishing the website shows a: HTTP Error 500.30 - ASP.NET Core app failed to start
After turning on logging follow log is given.
Please advise how to resolve this or where good instructions can be found.
2025-03-14T02:25:51 sandboxproc.exe complete successfully. Elapsed = 3305.00 ms[02:25:54 INF] Starting web host.[02:26:03 FTL] Host terminated unexpectedly!Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified.at System.Security.Cryptography.CngKey.Open(String keyName, CngProvider provider, CngKeyOpenOptions openOptions)at System.Security.Cryptography.X509Certificates.CertificatePal.GetPrivateKey[T](Func2 createCsp, Func
2 createCng)at System.Security.Cryptography.X509Certificates.CertificatePal.GetRSAPrivateKey()at System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPrivateKey[T](X509Certificate2 certificate, Predicate1 matchesConstraints)at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2 certificate)at Microsoft.IdentityModel.Tokens.X509SecurityKey.get_PrivateKey()at Microsoft.IdentityModel.Tokens.X509SecurityKey.get_PrivateKeyStatus()at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddSigningKey(SecurityKey key)at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddSigningCertificate(X509Certificate2 certificate)at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilderExtensions.AddProductionEncryptionAndSigningCertificate(OpenIddictServerBuilder builder, String fileName, String passPhrase, Nullable
1 flag)at Cellero.CloudServices.Blazor.CloudServicesBlazorModule.<>c__DisplayClass0_0.<PreConfigureServices>b__3(OpenIddictServerBuilder serverBuilder) in D:\DevOps\Cellero.CloudServices\src\Cellero.CloudServices.Blazor\CloudServicesBlazorModule.cs:line 129at Volo.Abp.Options.PreConfigureActionList1.Configure(TOptions options)at Microsoft.Extensions.DependencyInjection.ServiceCollectionPreConfigureExtensions.ExecutePreConfiguredActions[TOptions](IServiceCollection services, TOptions options)at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.<>c__DisplayClass1_0.<AddOpenIddictServer>b__0(OpenIddictServerBuilder builder)at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action
1 configuration)at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.AddOpenIddictServer(IServiceCollection services)at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.ConfigureServices(ServiceConfigurationContext context)at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context)at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync()--- End of inner exception stack trace ---at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync()at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction)at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action`1 optionsAction)at Cellero.CloudServices.Blazor.Program.Main(String[] args) in D:\DevOps\Cellero.CloudServices\src\Cellero.CloudServices.Blazor\Program.cs:line 42
2025-03-14 02:25:47 ~1CELLEROCLOUDSERVICES2025 GET / - 80 - 172.17.32.5 AlwaysOn - - cellerocloudservices2025-f0c6f0bgbcgkangj.australiaeast-01.azurewebsites.net 200 0 0 3240 529 70
2025-03-14 02:25:47 CELLEROCLOUDSERVICES2025 GET / X-ARR-LOG-ID=191dec8c-2181-40d2-ba33-2a3139a7a07c 443 - 127.0.0.1 AlwaysOn ARRAffinity=9b972310be74dedb5cd541f6b82070120f1431f4da4e9e5f1ba0a400f64e8628 - cellerocloudservices2025-f0c6f0bgbcgkangj.australiaeast-01.azurewebsites.net 500 30 574 2780 1036 72
3 Answer(s)
-
0
hi
The system cannot find the file specified
Have you uploaded the
openiddict.pfx
to Azure as well?https://abp.io/docs/latest/deployment/configuring-openiddict
-
0
Ok thank you.
I missed this piece:
It is working now.
-
0
Great