I created a Web API project using the default ASP.NET Core Web Application (.NET Framework) template and then published to local folder using VS.
Now if I call
Make sure you install the correct version of ASP Net Core in the server.
Here is the download link:
https://dotnet.microsoft.com/download/dotnet-core