HTTP Error 500.30 - ASP.NET Core app failed to start

Mohamad Mousheimish

I know that this question have been asked a lot, but none of the answers helped me.

What's happening is that I'm publishing my .net 5 application on IIS on an Azure VM. The problem is when connecting to database server on the VM.

Using an Azure SQl Server with the following connection string, is working normally:

Server=tcp:serverName.database.windows.net,1433;Initial Catalog=database;Persist Security Info=False;User ID=username;Password=Password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;

But using a connection string for a SQL Server that existing on the VM such as the following:

Server=ACS;Initial Catalog=database;Persist Security Info=False;User ID=username;Password=Password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;

Is causing the following error:

HTTP Error 500.30 - ASP.NET Core app failed to start

Anyone have any idea what's happening?? I think it's something related to security, permissions on the SQL Server installed on the VM machine. Or that I should add a port number to the connection string. Any help would be appreciated, thanks.

AlwaysLearning

By default SQL Server is installed with self-signed X.509 certificates. Unless you've installed your own CA-signed certificate, or you've exported the public key and added it to your Trusted Roots store, you'll probably want to use TrustServerCertificate=True; instead.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

IIS .NET Core 5.0 MVC API - Getting HTTP Error 500.30 - ASP.NET Core app failed to start

Override the default error page 500.30 - ASP.NET Core app failed to start

Asp net core publish on azure app services 500 server error

asp.net core app. 500 - Internal server error

Asp.net core 3.1 - InProcess on Azure app Service HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

Constructor with Dependency Injection is causing http 500 error in react asp.net core application

ASP.NET Core 2.0 Web API throwing 500 error and not allowing access on http post

ASP.NET Core application on IIS Express 10 gives HTTP 500 error

localhost is currently unable to handle this request. HTTP ERROR 500 - For asp.Net Core

asp.net core app deployed on iis meets 500 internal server error

500 Error when setting up Swagger in asp .net CORE / MVC 6 app

.NET Core 3.0 and IIS: HTTP Error 500.30 - ANCM In-Process Start Failure: failed to load coreclr

HTTP Error 500.30 - ANCM In-Process Start Failure error in ASP.NET Core 2.2

Deploying .net core web app getting error HTTP Error 500.30 - ANCM In-Process Start Failure

Hosting Asp.Net Core 3.0 in Azure: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

ASP.NET Core 3.1 HTTP Error 500.32 - ANCM Failed to Load dll on IIS

RequestSizeLimitAttribute: HTTP 500 instead of 413 in ASP.NET Core 2.1.401

ASP.NET Core Web API Throws HTTP 500

HTTP Error 500.30 - ANCM In-Process Start Failure Asp.net-Core 3.1

Where can I log an ASP.NET Core app's start/stop/error events?

ASP.NET Core WebAPI 500 Internal error in IIS 7.5

ASP.NET Core MVC causing a 500 error on IIS 8.5

ASP.NET Core hosting - 500 internal server error

ASP.NET Core Web API 500 Internal Server Error

Azure ASP.NET Core - Error 500 for new files

500 URL Rewrite Module Error ASP.NET Core

ASP NET Core 3 - Forgot Password 500 Error

Deploy ASP.NET Core API to Local IIS Error 500

500 Error in Angular 6 .net core 2.1.1 app deployed to IIS