question

sajithgh avatar image
0 Votes"
sajithgh asked ChaoDeng-MSFT commented

Azure Web App is returning HTTP 500 error

HTTP Error 500.30 - ANCM In-Process Start Failure - The Project is Asp.net core 3.1

• Category: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer
• EventId: 2
• RequestId: 80003143-0000-e600-b63f-84710c7967bb
• RequestPath: /
• SpanId: 0adfa77900585d42
• TraceId: 1e2f3d6255feef40b0d3d3dce5982f55
• ParentId: 0000000000000000

• Connection ID "16573246630334050626", Request ID "80003143-0000-e600-b63f-84710c7967bb": An unhandled exception was thrown by the application.

• Exception:
• System.NullReferenceException: Object reference not set to an instance of an object.
• at ......Infrastructure.SmartSearchIndexRebuildMiddleware.InvokeAsync(HttpContext context) in .../SmartSearchIndexRebuildMiddleware.cs:line 79
• at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()

dotnet-csharpdotnet-runtimedotnet-aspnet-core-blazor
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sajithgh,
According to the prompt:

500.30 In-Process Startup Failure

Common failure conditions:

1.The app is misconfigured due to targeting a version of the ASP.NET Core shared framework that isn't present. Check which versions of the ASP.NET Core shared framework are installed on the target machine.

2.Using Azure Key Vault, lack of permissions to the Key Vault. Check the access policies in the targeted Key Vault to ensure that the correct permissions are granted.

If it doesn't work, you can give us the relevant code according to your error message
0 Votes 0 ·

1 Answer

vb2ae avatar image
0 Votes"
vb2ae answered

The error is saying that on line 79 of your class SmartSearchIndexRebuildMiddleware you are getting an object refence error. Basically you are trying to use something that is null

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.