Open Closed

Deployment-to-Azure HTTP Error 500.30 - ASP.NET Core app failed to start #8967


User avatar
0
cellero created
  • 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, Func2 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, Nullable1 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, Action1 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, Action1 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

HTTP Error 500.30 - Internal Server Error

The page cannot be displayed because an internal server error has occurred.

Most likely causes:

  • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
  • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
  • IIS was not able to process configuration for the Web site or application.
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:

  • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
  • Check the event logs to see if any additional information was logged.
  • Verify the permissions for the DLL.
  • Install the .NET Extensibility feature if the request is mapped to a managed handler.
  • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:

Module   AspNetCoreModuleV2
Notification   ExecuteRequestHandler
Handler   aspNetCore
Error Code   0x8007023e
Requested URL   http://localhost:80/
Physical Path   C:\home\site\wwwroot
Logon Method   Anonymous
Logon User   Anonymous

More Information:

This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

View more information »

Microsoft Knowledge Base Articles:


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)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08