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

Asked

Viewed 664 times

2

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

When accessing url ex: http://localhost:8080 returns this error:

HTTP Error 502.5 - Process Failure.

The process I’ve done so far:

  • I created the application
  • pointed to the directory where the application is
  • I pointed to door 8080
  • Installed on the server . NET Core Windows Server Hosting Bundle
  • I changed the Applicationpool to: No Managed Code and Integrated
  • In the code of the app I put the Useiisintegration()

I really don’t know what might be causing the error.

I’ve tried several things I’ve seen, including on the Microsoft site. I don’t know if I’m doing any wrong process

If anyone can help, I’d appreciate it.

  • Dude, I don’t quite understand your question, but come on. Did you create the application on IIS? Pointed out the application directory? Pointed the door that will be used? If you can give more details of the case would be legal.

  • 1

    What version .NET Core are you using? Meanwhile, see if the answers to this question helps you with something

  • @Randrade , the problem was precisely the version of . NET Core. On the server I installed a higher version and so gave the error.

  • @user1967120 This is a fairly common mistake. I’m glad you were able to resolve and posted the answer to others.

1 answer

4


The problem was occurring due to the. NET Core version 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 the .NET Core 1.1.4 Runtime (LTS) - Windows Server Hosting (x86/x64).

and the problem has been solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.