How to deploy an Asp.Net Core Web API project in IIS?

2

Hello, I'm trying to put my ASP.NET WEB API application in IIS on the Windows Server 2016 server, but without success.

When accessing url ex: link returns this error:

  

HTTP Error 502.5 - Process Failure.

The process I've done so far:

  • I created the application
  • I pointed to the directory where the application is
  • I pointed to port 8080
  • I installed on the server the .NET Core Windows Server Hosting bundle
  • I changed the ApplicationPool to: No Managed Code and Integrated
  • In the app code I put the UseIISIntegration ()

I really do not know what might be causing the error.

I've tried a lot of things I've seen, including on the Microsoft website. I do not know if I'm doing any wrong process

If anyone can help, thank you.

    
asked by anonymous 15.09.2017 / 20:53

1 answer

4

The problem was occurring due to the version of .NET Core installed on the server and the version used in the project.

I downloaded the ideal version on the server equivalent to 1.0.5 which in the case was .NET Core 1.1.4 runtime (LTS) - Windows Server Hosting (x86 / x64)

and the problem has been fixed.

    
26.09.2017 / 20:19