ASP.NET Core IIS Application Pool Compatibility - iis

I have my ASP.NET Core application running on IIS and the Application Pool is currently set to .NET CLR Version 4.0. My application loads up correctly and the my view is displayed. However, when I try to run a POST I get the following error:
502 - Web server received an invalid response while acting as a gateway or proxy server.
I realize that most documentation says to set the .NET CLR Version to No Managed Code for .NET Core, but is it possible to run ASP.NET Core against v4.0? I am targeting .NET Framework 4.5.2 in my .NET Core app.

Related

How can I host a Asp.NET Core gRPC Service on IIS

I need to host my Asp.NET Core gRPC Service on IIS so that I can make it publicly available for others in my team so can you please provide a proper document or steps for hosting my gRPC service on IIS.
Hosting .net core application in IIS is not yet supported. For more details please go through link
This document states that ASP.NET Core gRPC can be hosted on IIS, but it carries extra requirements.
IIS requires .NET 5 and Windows 10 Build 20300.1000 or later.
HTTP.sys requires .NET 5 and Windows 10 Build 19529 or later.
So please check if it meets the requirements before trying to publish it on IIS:
Host ASP.NET Core on Windows with IIS.

.Net Core 3.1 API - Basic Deployment To IIS

I have created a .Net Core 3.1 Web API. The API included EF Core and Automapper packages. Will this/should this run when deployed to IIS or are there other things/frameworks the need to be installed on IIS?
Prerequisites:
.NET Core SDK installed on the development machine.
Install the .NET Core Hosting Bundle on the IIS server. The bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module. The module allows ASP.NET Core apps to run behind IIS.
For more information about "Publish an ASP.NET Core app to IIS", you can refer to this link.

Deploying a .NET 4.5 RESTful API to IIS 10

I have developed an ASP.NET Web Service in Visual Studio 2013. The target framework is .NET 4.5.
I am attempting to deploy the Web Service in IIS 10 running on a Windows Server 2016. I have registered.NET 4.5 on the IIS using the following command - dism /online /enable-feature /featurename:IIS-ASPNET45.
I have also enabled 32-bit applications in the application pool.
I have also ensured that .NET extensibility for .NET 4.6 and ASP.NET 4.6 are enabled, in the application development features.
I am getting the following error when trying to browse the web service - HTTP Error 403.14 - Forbidden The Web Server is Configured to Not List the Contents of this Directory.
The funny thing is that when I deploy the web service to IIS 8, it runs with no problem at all.
I am at my wits' end. Could someone please tell me where I am going wrong with the IIS 10?

Correlate running ASP.NET Core processes with IIS end-points

I am trying to figure out how to manage all those running ASP.NET Core processes which are hosted in an IIS reverse proxy setup; being kicked-off out-of-process by the ASP.NET Core native IIS module.
I.e. for a given IIS end-point how to find out which out-of-process ASP.NET Core process is attached to the responsible W3WP.exe reverse proxy worker process.
I noticed three variations:
.NET Core Framework dependent ASP.NET Core deployments (FDD) use a dotnet.exe based process; where dotnet.exe executes the specified ASP.NET Core DLL;
Self-contained ASP.NET Core deployments (SCD) use an < applicationname >.exe based process;
Full framework ASP.NET Core deployments use an < applicationname >.exe scheme as well.
Are there IIS Management PowerShell cmdlets available and/or other means to probe all running ASP.NET Core native IIS module instances?
https://learn.microsoft.com/en-us/dotnet/core/deploying/

Running MVC Web app targeting .net 4.6.1 in a virtual directory under a ASP.NET core web app. Is it possible? [duplicate]

This question already has an answer here:
ASP.NET 4.5 throws 502.5 as a virtual application in Azure Web App under a ASP.NET Core 2.0 application
(1 answer)
Closed 4 years ago.
I've converted my personal website from ASP.NET to ASP.NET Core Web app (.net framework). I've uploaded this to azure app services and works fine.
I would now like to run my blog (which is a ASP.NET MVC web app targeting .net 4.6.1) in a virtual application called Blog.
Is this possible and if so what steps do I need to take?
More info. I've tried using web deploy in VS to deploy the blog app to the virtual directory. However, though it says successful the blog folder is not present under wwwroot.. My mistake the blog is present in /site/wwwroot. However, I get a HTTP Error 502.5 - Process Failure when accessing the sitename.com\blog.
The accepted answer in the question below fixes the issue that I had.
ASP.NET 4.5 throws 502.5 as a virtual application in Azure Web App under a ASP.NET Core 2.0 application
You can crate the Virtual Application in the Azure web apps by adding the path to the Folder in the Virtual Directories and Application section under App Settings.

Resources