Aspnetcore: Is there a standalone installer for ANCM; i.e., without .NET Core runtime?

Created on 28 Sep 2018  Â·  17Comments  Â·  Source: dotnet/aspnetcore

I'm publishing a self-contained ASP.NET Core application and would like to host it in IIS. To do that, I know I need to install ASP.NET Core Module; however, the download page lists only the Runtime & Hosting Bundle and there is no installer for ANCM alone.

I don't want to install .NET Core runtime; so, is there a standalone installer for ANCM?

Docs servers-iis

Most helpful comment

@guardrex @muratg @joeloff, never mind... this last time I ran the wrong installer 😊

I ran the correct one (dotnet-hosting-2.1.4-win.exe) as in the Docker sample this time and it worked; thanks.

All 17 comments

There is a flag called OPT_NO_RUNTIME that you can specify if you run the hosting bundle from command line.
It would look like:

hostingbundle.exe OPT_NO_RUNTIME=1

@shirhatti @guardrex let's make sure we document all of the flags on the hosting bundle as this question frequently comes up.

We had the old flag documented, but the prior flag was disabled/dysfunctional, so we removed the content on it (https://github.com/aspnet/Docs/pull/5546 based on https://github.com/aspnet/Docs/issues/5454). I've opened #8748 to bring that back (with the new flag name).

@jkotalik, are we talking about "dotnet-hosting-2.1.4-win.exe" installer or another installer that's called "hostingbundle.exe"?

The thing is, I couldn't find an installer with the name "hostingbundle.exe", and "dotnet-hosting-2.1.4-win.exe" installs the runtime despite providing the OPT_NO_RUNTIME=1 flag; e.g., I installed ANCM using the command line .\dotnet-hosting-2.1.4-win.exe OPT_NO_RUNTIME=1;.

ancm

Sorry for the confusion, I did mean dot net-hosting-2.1.4-win.exe. I’ll repro if OPT_NO_RUNTIME locally to confirm, this could be a bug.

Thanks

Get Outlook for iOShttps://aka.ms/o0ukef


From: Essam notifications@github.com
Sent: Friday, September 28, 2018 7:51:54 PM
To: aspnet/IISIntegration
Cc: Justin Kotalik; Mention
Subject: Re: [aspnet/IISIntegration] Is there a standalone installer for ANCM; i.e., without .NET Core runtime? (#1455)

@jkotalikhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkotalik&data=02%7C01%7CJustin.Kotalik%40microsoft.com%7C520b45b1cb54471b397e08d625b6843d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636737863180246809&sdata=unrbdSFrpegVaJvJzYwD8aYj9jvRmuCdGsI11Br24yw%3D&reserved=0, are we talking about "dotnet-hosting-2.1.4-win.exe" installer or some installer that's called "hostingbundle.exe"?

The thing is, I couldn't find an installer with the name "hostingbundle.exe", and "dotnet-hosting-2.1.4-win.exe" installs the runtime despite providing the OPT_NO_RUNTIME=1 flag; e.g., I installed ANCM using the command line .\dotnet-hosting-2.1.4-win.exe OPT_NO_RUNTIME=1;.

[ancm]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F807685%2F46240129-104fe080-c3b4-11e8-894b-d44fdfd10344.png&data=02%7C01%7CJustin.Kotalik%40microsoft.com%7C520b45b1cb54471b397e08d625b6843d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636737863180246809&sdata=Q5ME%2BDfBYao9msCu13pune5EUW%2FoTvAUmUCrtHxzqXw%3D&reserved=0

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Faspnet%2FIISIntegration%2Fissues%2F1455%23issuecomment-425609979&data=02%7C01%7CJustin.Kotalik%40microsoft.com%7C520b45b1cb54471b397e08d625b6843d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636737863180246809&sdata=xjZJBzMqlu%2FbHpywv5mdHJFnYvtmOiEsUShW6NHQATs%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH6uFTQv1Y9PCpBzbgiuFbYwOhBBd0bfks5ufuBKgaJpZM4W-2e5&data=02%7C01%7CJustin.Kotalik%40microsoft.com%7C520b45b1cb54471b397e08d625b6843d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636737863180246809&sdata=j89tbCMr%2BxoV7m8NPXDyAD2G69OhfkeecwwqAcqfouY%3D&reserved=0.

@joeloff This was broken in one of the dotnet hosting bundle versions. Was it this one?

(Edit: could you also confirm if it's fixed in 2.2?)

Also, in the meantime @TheBlueSky please take a look at https://github.com/Microsoft/iis-docker/blob/master/samples/aspnetcoremodule/Dockerfile#L12 and the params passed.

@muratg it got broken during one of the 2.0.x releases and AFAIK, it was fixed in an early 2.1 release. I'll see if I can find the version where it was fixed. The parameters from the docker sample is doing the right thing - it's disabling the runtime/shared framework install, which only leaves ANCM as an installable component (provided that IIS is enabled)

(Edit: This was fixed for 2.1 from what I can tell)

Thanks @joeloff!

@joeloff @muratg, I tried the Docker sample with aspnetcore-runtime-2.1.4-win-x86.exe but it still installed Microsoft.AspNetCore.All and Microsoft.AspNetCore.App.

@TheBlueSky We almost have it documented (ANCM only). See the issue here :point_right: https://github.com/aspnet/Docs/issues/8748

@guardrex, do you mean that this will work in 2.2 but it doesn't work in 2.1?

@guardrex @muratg @joeloff, never mind... this last time I ran the wrong installer 😊

I ran the correct one (dotnet-hosting-2.1.4-win.exe) as in the Docker sample this time and it worked; thanks.

will work in 2.2 but it doesn't work in 2.1

That might be correct. IIRC, the reason we removed language from the topic regarding the ANCM-only install had to do with the (new at the time) runtime package store (and that system has undergone a major change, too, in this time period).

Now that the approach for ANCM-only works again, we're putting the switch back into the topic. Idk which installers had it working or not. The switch name has changed, too. Now, the switch name is ...

OPT_NO_RUNTIME=1

... but in the _ancient times of ASP.NET Core_ (last year or two :smile:), it was ...

OPT_INSTALL_REDIST=0

(see https://github.com/aspnet/Home/issues/1454#issuecomment-230818177 for the reference to that, but it's old news and not a working switch any longer).

Thanks @guardrex.

When I have some time, I'll do more tests. It looks like OPT_NO_SHAREDFX=1 works but not OPT_NO_RUNTIME=1.

I'll follow along here for the docs update on https://github.com/aspnet/Docs/issues/8748 in case we need to call out more than just the existence of the switches. Right now, the plan is just to surface them with a short description in a little table perhaps. That might not cut it.

We have coverage here: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1#install-the-net-core-hosting-bundle

(Thanks @guardrex)

Was this page helpful?
0 / 5 - 0 ratings