0

I'm trying to publish an application made in .net 5 on an IIS server.

Process carried out:

Considerations:

Modules IIS

About installing ASP.NET Core Runtime 5.0.6, according to other posts should be available at: 'C:\Program Files\IIS\Asp.Net Core Module\V2', but even if the installation is done successfully is not found in this directory.

Is there a configuration/installation that should be done for .Net 5?

Vanderney Souza
  • 5
  • 1
  • 1
  • 4
  • "according to other posts should be available at: 'C:\Program Files\IIS\Asp.Net Core Module\V2'", which posts then? They can be completely wrong, and you should always start with Microsoft official documentation. – Lex Li May 25 '21 at 01:38
  • Yes, I follow the official documentation. I added the links of the installers used. The directory reference is just a note I made regarding other servers that contain net 5 in operation. – Vanderney Souza May 25 '21 at 02:09
  • https://docs.jexusmanager.com/tutorials/ancm-diagnostics.html Run a report as there might be something you missed. – Lex Li May 25 '21 at 02:16

1 Answers1

1

In order for you to deploy an ASP.NET Core app to IIS, you need to first configure your environment accordingly by installing the .NET hosting bundle.

Please read this tutorial for details.

It's not as straight forward as before the days of .NET Core. Pay attention to your publishing model as well as you can now deploy a fully standalone version or one that depends on .NET being installed in the machine.

Lastly, this article contains useful information on other things you may want to consider as well as troubleshooting.

JuanR
  • 7,405
  • 1
  • 19
  • 30
  • That's the process I said I did. I'll try to add clearer to my question – Vanderney Souza May 25 '21 at 01:48
  • @VanderneySouza trust me. I went through the same thing. Do yourself a favor and install the hosting bundle. You are probably installing components separately. That didn't work for me. MS has a tool just for this so use it. Lastly, even though they claim you can just use net start, don't do it. Restart your server. – JuanR May 25 '21 at 01:55
  • As soon as possible I will try to reinstall and restart the server. And I talk about results – Vanderney Souza May 25 '21 at 02:05
  • Thank you! It worked perfectly. The strange thing is that I had already done the same process and had not worked. – Vanderney Souza May 25 '21 at 13:41
  • @VanderneySouza I am glad I was able to help. :-) – JuanR May 25 '21 at 17:47