Reputation: 3364
I am trying to follow a very simple TodoApi tutorials found on here https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api
I could run it as standalone on my local box using
dotnet run <ApplicationName>
Quick test using Postman showed the standalone application is running fine on my local computer. However, when I tried to "deploy" the application to my Windows Server 2008 R2 (I have installed DotNetCore SDK and DotNetCore WindowsHosting in there), I got this error:
By "deploy", I meant xcopying the folder. So my questions here are two folds:
1) Is there a guideline/instruction of how to deploy a standalone api with dotnet core to a different windows server, the prerequisites for the server to be able to host such api application?
2) Is there a guideline to deploy the api to IIS?
Thanks,
Upvotes: 3
Views: 8711
Reputation: 3364
After much researches and head banging against the wall, I've finally found an great article from Rick Stralh that detailed how an Asp.Net Core application should be published and hosted with IIS. I found this article highly, extremely useful and answered to all my questions. I think I would like to share in case others may run into the same issue as myself. Thank you, Rick!!
Upvotes: 7