GET http://localhost:5000/api net::ERR_CONNECTION_REFUSED

fako 0 Reputation points
2023-04-17T08:32:24.0833333+00:00

Hello, I have a windows 2016 server. There is a website in iis and it is working fine also there is an asp.net core web api . It is working same server. But when ı try to request ım getting this error on browser: GET http://localhost:5000/api net::ERR_CONNECTION_REFUSED. How can ı fix it?

Developer technologies ASP.NET ASP.NET Core
Windows for business Windows Server User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-04-17T15:51:57.4266667+00:00

    port 50000 is used when you run the asp.net core app directly, rather than hosted with IIS. are yo sure you started the core app?

    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.