Reputation: 2378
I have WEB API developed in .net core (VS 2017). I need to deploy this api in IIS. This is the procedure I have followed.
After it is finished, there are some files in the physical path. I have copied the files on to the server where it is supposed to be hosted.
In the server, this is what I have done:
There is a simple Get method in the API for now, where it just returns a string.
Say if the IP address of the server is 10.1.1.1 , this is the URL I'm using.
http://10.1.1.1/ABC/api/GetData
I'm trying this through Postman. I'm getting 500 Internal server error.
When I follow the same process for Web API developed in .Net framework, it is working perfectly fine.
Is there any step which I'm missing for .net core?
Upvotes: 1
Views: 1923
Reputation: 4236
You need to ensure the following:
For details check https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2
Upvotes: 4