community
3 TopicsHandshake Failure in ASP.NET Core Web API on Ubuntu 22.04 LTS
I have an ASP.NET Core Web API that was working perfectly on my Windows machine. I needed to deploy it on an Ubuntu Linux 22.04 LTS server. I followed https://github.com/mzand111/DotNetLinuxDeploy. The application runs and can be accessed through the browser using localhost:5169. in Linux However, when a client tries to fetch data using the Linux server's IP address and port endpoint, it throws the following exception: I am using HTTP currently Client Window app access then this exception shows in the terminal of Linux. If I use Client android app then it does not throw any exception it just says Time out. fail: Microsoft.EntityFrameworkCore.Database.Connection[20004] An error occurred using the connection to database '****' on server '******'. fail: Microsoft.EntityFrameworkCore.Query[10100] An exception occurred while iterating over the results of a query for context type '****.ApiContext.apiContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed) ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream........ Microsoft.EntityFrameworkCore.SqlServer 8.0.2 (Installed) Added this in Program.cs ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; var app = builder.Build(); Connection String "ApiString": "Data Source=DB***;Initial Catalog=***;User Id=user;Password=**********;Connect Timeout=30;Encrypt=false;TrustServerCertificate=true;Persist Security Info=false;Application Intent=ReadWrite;MultiSubnetFailover=false" LaunchSettings.Json "profiles": { "Image_catalogue": { "commandName": "Project", "launchBrowser": true, "launchUrl": "swagger", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "dotnetRunMessages": true, "applicationUrl": "http://localhost:5169", "nativeDebugging": false }, Any assistance in resolving this issue would be greatly appreciated.751Views0likes1Comment.NET framework future scope
Is there going to be .NET framework 4.8.2? What are the plans for .NET framework? And what is the end of life of all these versions? Version Start Date End Date .NET Framework 4.8.1 Aug 9, 2022 .NET Framework 4.8 Apr 18, 2019 .NET Framework 4.7.2 Apr 30, 2018 .NET Framework 4.7.1 Oct 17, 2017 .NET Framework 4.7 Apr 11, 20171.4KViews1like3CommentsERROR AFTER UPDATING _layout.cshtml navbar
Hello guys. I have problem in my ASP.net MVC code _layout.cshtml. whenever I add new code an internal server error occurs. But when I remove the code, the program runs properly. I tried adding the bootstrap nuget package and popper.js, but nothing is changing. The commented code is the one that is bringing the internal server error after removing the comment. what could be the problem? please help <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] - eTickets</title> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /> <link rel="stylesheet" href="~/eTickets.styles.css" asp-append-version="true" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css"> </head> <body> <header> <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3"> <div class="container-fluid"> <a class="navbar-brand" asp-area="" asp-controller="Movies" asp-action="Index">eTickets</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="navbar-collapse collapse d-sm-inline-flex justify-content-between"> <ul class="navbar-nav flex-grow-1"> <li class="nav-item dropdown"> <a class=" nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="badge-info bi-gear"></i>Management</a> @* <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <a class="dropdown-item" asp-controller="Cinemas" asp-action="Index"> <i class="bi bi-camera-reels"></i> Cinemas</a> <a class="dropdown-item" asp-controller="Producers" asp-action="Index"> <i class="bi bi-headset"></i> Produers</a> <a class="dropdown-item" asp-controller="Actors" asp-action="Index"> <i class="bi bi-person-square"></i> Actors</a> </div>*@ </li> <li class="navbar-nav flex-grow-1"> <a class="nav-link text-dark" asp-controller="Movies" asp-action="Index"><i class="badge-info bi-film"></i>Movies</a> </li> </ul> @*<form class="form-inline my-2 my-lg-0" asp-controller="Movies" asp-action="Filter" style="padding-right:25px;"> <input name="searchString" type="text" class="form-control" placeholder="Search movie..." /> <button class="btn btn-outline-success my-2 my-sm-0" type="submit"><i class="bi bi-search"></i></button> </form>*@ </div> </div> </nav> </header> <div class="container-fluid"> <main role="main" class="pb-3"> @RenderBody() </main> </div> <footer class="border-top footer text-muted"> <div class="container"> © 2022 - eTickets - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a> </div> </footer> <script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script> <script src="~/js/site.js" asp-append-version="true"></script> @await RenderSectionAsync("Scripts", required: false) </body> </html>1.2KViews0likes3Comments