ASP.NET Core Web API Deployment problem to IIS

Cenk 1,036 Reputation points
2023-02-14T14:12:55.1666667+00:00

Hi there,

I am trying to publish my asp.net core 7 web API to a windows server IIS. I installed the core 7 windows hosting bundle but got an internal server error when I try to display it on the browser. What could be the problem? How can I solve this?

Here is the event log error message;

IIS APPPOOL\OyunPalas

Fatal alert generated and sent to remote endpoint. This may cause the connection to be terminated. TLS protocol defined fatal error code: 48. Windows SChannel error status: 552.

Here is my publish profile settings;

Ekran görüntüsü 2023-02-14 171149

Developer technologies ASP.NET ASP.NET Core
Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-02-14T16:19:21.0233333+00:00

    You question is not clear. You state your app is net 6, but you publish is net 7.

    internal server error is typically startup. Check the event log for the error message,


  2. Cenk 1,036 Reputation points
    2023-02-15T10:52:13.3566667+00:00

    Adding this to the connection string solved my issue;

    TrustServerCertificate=Yes

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.