I want to install Hosting Bundle on relevant computer before the project is installed. However, it is not on this list.
How can I do this before installation?
I could not add it as a requirement since Hosting bundle is not in the list.
You can install.NET Core Hosting Bundle using the following link:
Thanks for downloading ASP.NET Core 7.0 Runtime (v7.0.2) - Windows Hosting Bundle Installer!
More information you can refer to this link: The .NET Core Hosting Bundle.
Related
I have 2 projects, an ASP MVC project and an ASP Web API project using .NET Framework 4.7.2
From a coding perspective both of these project types are very similar.
Yet the MVC project publishes to <100MB and the API project to 500MB+, despite the MVC project containing numerous JS libraries and other content.
This seems to be down to a folder the Web API project includes called "runtimes". Is this folder necessary, can it be optionalised, are there some optimisation options I can set?
This is the framework which is published because of the settings in your publish profile.
Publishing your app as self-contained produces an application that includes the .NET runtime and libraries, and your application and its dependencies. Users of the application can run it on a machine that doesn't have the .NET runtime installed.
Publishing your app as framework-dependent produces an application that includes only your application itself and its dependencies. Users of the application have to separately install the .NET runtime.
https://learn.microsoft.com/en-us/dotnet/core/deploying/
I have an issue when i deploy blazor to iis:
I searched about this issue and found some ways like: add permission for folder publish,... but it doesn't work. I saw that 0x8007000d is a error about web.config file
this is my web.config
I try on other devices. It works.
So why my devices doesn't?. I use Visual Studio 2019, .Net 5.0 and deploy blazor to IIS on Windows 10.
Usually, this error indicates that the ASP.NET Core module is not installed on the server. Hosting ASP.NET Core applications on IIS requires the Microsoft ASP.NET Core module. You should confirm that the module is installed:
Install the .NET Core Hosting Bundle.
I'm trying to run the default vanilla ASP.NET core website from VS, on my windows server 2016 instance. But when I run it I get a HTTP 502.3 error
I enabled logging from the web config, the logging message I get back is
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
I've install the windows hosting bundles
https://dotnet.microsoft.com/download/dotnet-core/2.2
https://dotnet.microsoft.com/download/dotnet-core/2.1
The CSProj is targeting the netcoreapp2.1 runtime
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
The hosting bundle is for IIS proper, when deploying an already compiled ASP.NET Core app. In Visual Studio, you're running against IIS Express and the source code needs to be compiled to deploy it there. That requires the SDK; the runtime is not enough. Download the .NET Core SDK and you'll be fine.
The default publication was using 'portable' as a target runtime, which requires the SDK to be installed. Switching it to match your machine architecture, 'win-x64' in that case, enables it to run with simply the proper dotnet runtime installed.
I have a .NET Core 2.1 application with target framework .Net Framework 4.6.1. I would like to host it on IIS but I don't want to install .net core hosting bundle. Is it possible to run this app on IIS without installing .Net Core Hosting Bundle? I tried running this page on local IIS but I get:
HTTP Error 500.19 - Internal Server Error The requested page cannot be
accessed because the related configuration data for the page is
invalid.
Most answers suggest installing .Net Core Hosting Bundle to fix this error, but since I am not allowed to install it on remote server I would like to know if there is any other way?
If you're targeting in your package references asp.net core 2.1 (as title says) then you're basically targeting Runtime Framework that you need to have installed on your machine.
Created a MVC application with ASP.NET Core 2.1 targeting .NET Framework and published the application to a folder.
Then, I managed to host the application in IIS with application pool with Integrated Pipeline and .NET CLR v4.0 as shown below:
Important: Next thing you need to ensure that Application pool identity user (IIS AppPool\{ApplicationPool Name} has Read and execute permissions on your publish folder.
If you check the web.config of your published app, you will notice AspNetCoreModule handler is referenced. This AspNetCoreModule is required to host the app in IIS as it act as a reverse proxy. So you need to install ASP.NET Core hosting bundle for installing this module.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/aspnet-core-module?view=aspnetcore-2.1
I run a local IIS Server with a DotNot Core 2.1 application deployed to it. I like to keep up to date with the latest security patches that are released monthly and I use the Core download page to do so.
My question is, what ALL do I need to install each time and in what order. I usually find a Framework installer and I chose the SDK just to make I have everything. Then I find a ASPNET.CORE installer and I run those in. Finally, I run the Web Hosting Bundle.
Am I doing too much? Do some of these items copy over the same assets? What is the correct proceedure?
If you need to host an asp.net core web app, follow the Host ASP.NET Core on Windows with IIS Guide.
In terms of installing things, follow the Install the .NET Core Hosting Bundle Section
The bundle will install 3 things:
.NET Core Runtime
.NET Core Library
ASP.NET Core Module (for IIS)