I can't find any documentation on how to host an ASP Core 2.x application running on .Net Framework on IIS 10. Does it use the same AspNetCoreModule as when running on .Net Core or should I use the ASP.Net IIS module? What other IIS configuration is required?
1 Answer
When you say "ASP Core 2.x" I assume you mean ASP .NET Core 2.1 (as earlier versions are out of support.
If you visit the .NET downloads page: https://dotnet.microsoft.com/download/dotnet
Find your runtime version, and click to visit the download page for that version. There you will find the links to download the correct Hosting Bundle, which you will want to install into IIS to host your .NET Core app.
Documentation: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1
5 Comments
Neutrino
That documentation states that apps that "Has 64-bit native dependencies" are not supported, and the main reason to run ASP.Net Core on .Net Framework would be precisely to support native dependencies. So I don't think that documentation really describes how to correctly host ASP.Net Core on .Net Framework, (or if it does it doesn't make much sense to me).
4e 69 63 6b
.NET Core and .NET Framework are different things, so I guess I'm not following your question. The documentation (under the "Supported Platform" header) states to use a 32-bit SDK unless you have native 64-bit dependencies, in which you need to use a 64-bit SDK/runtime. learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/…
Neutrino
ASP Net Core is a framework library. It can be run on either the Net Core or .Net Framework runtime. It can be useful to run ASP Core on .Net Framework as that supports native dependencies that the Net Core runtime does not. However the documentation does not describe the correct IIS deployment strategy and configuration for an ASP Core service running on .Net Framework.
4e 69 63 6b
Sounds like your .NET Core app requires .NET Framework libraries. If that's the case, I would imagine as long as that .NET Framework version is installed on the same server as your .NET Core application, it would function correctly.
Ali reza Soleimani Asl