Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPNETCoreModule not installed with .NET Core SDK

I installed VS 2017 along with .NET Core SDK on Windows 10. But it did not install ASPNETCoreModule as shown in figure 2 below. I thought .NET Core SDK should have installed it implicitly - and one does not have to install it separately. NOTE: I'm trying to publish my asp.net core app to IIS and the publish process requires ASPNETCoreModule as explained in the above link and also in this official MSDN article.

enter image description here

ASPNETCoreModule is missing:

enter image description here

like image 751
nam Avatar asked Aug 16 '17 20:08

nam


People also ask

How do I get Aspnetcoremodule in IIS?

Run ASP.NET Core apps with IIS by either: Hosting an ASP.NET Core app inside of the IIS worker process ( w3wp.exe ), called the in-process hosting model. Forwarding web requests to a backend ASP.NET Core app running the Kestrel server, called the out-of-process hosting model.


3 Answers

ASP.NET Core Module is installed separately from the SDK. You can download the current version 2.0.0 here. https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md#windows-server-hosting

See https://github.com/dotnet/core/blob/master/release-notes/download-archive.md for a list of other releases.

like image 62
natemcmaster Avatar answered Oct 19 '22 07:10

natemcmaster


ASP.NET Core Module is installed separately from the SDK

It's not true since the release of 2.1. I'm experiencing the same issue on Windows Server 2016. The module was installed on developer PC after uninstalling old versions / installing 2.1 a few times, but still struggling with the same issue in 2016. %SystemRoot%\system32\inetsrv\aspnetcore.dll is still missing.

like image 23
Andrey K Avatar answered Oct 19 '22 07:10

Andrey K


In order to run .net core apps on IIS you need to have installed the ASP.NET Core Module ( the way it works is explained here ) that comes:
1 - with the SDK 2.1,
2 - With the Hosting Bundle Installer that bundles the .Net Core and the ASP.NET Core Runtime into a single bundler.

you can have both from the download page

If you are a developer computer you already have the Module with the SDK, I think is better to have on Sever computer only the hosting bundle

like image 1
Carlos E Avatar answered Oct 19 '22 07:10

Carlos E