ASP.NET REST API is working locally but giving error when uploaded to a web server
I have an old rest API which is working fine in Visual Studio 2019 with SQL Server. But the same API, when uploaded to a web server, is not working. I get the following error.