Depending on the right PowerShell NuGet package in your .NET project

https://devblogs.microsoft.com/powershell/depending-on-the-right-powershell-nuget-package-in-your-net-project/

So for running PowerShell from within a .NET Core application it is best to use the PowerShell SDK package.

 

How easily map properties from one type to another in .NET Core

https://www.c-sharpcorner.com/article/mapping-similar-objects-in-asp-net-core-2-0/

 

How to run a .NET Core web application under IIS

 

Make sure you give, your application pool rights to the application folder.

IIS AppPool\<<MyApplicationPoolName>>>

Note you can’t browse for this account, because it is not a “real” windows account.

You must put it in the textarea: “Enter the object name to select (examples):

Then click on “Check Names”

 

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1

 

If you get the error below, when running a .NET Core application under IIS, make sure you have called “UseIISIntegration”, inside de Program.cs:

 

using Microsoft.AspNetCore.Hosting;

using Microsoft.Extensions.Hosting;

 

namespace MyDotNetAppUnderIIS

{

    public class Program

    {

        public static void Main(string[] args)

        {

            CreateHostBuilder(args).Build().Run();

        }

 

        public static IHostBuilder CreateHostBuilder(string[] args) =>

            Host.CreateDefaultBuilder(args)

                .ConfigureWebHostDefaults(webBuilder =>

                {

                    webBuilder

                    .UseIISIntegration()

                    .UseStartup<Startup>();

                });

    }

}

 

 

 

HTTP Error 403.14 – Forbidden

The Web server is configured to not list the contents of this directory.

 

Fix https certificate error, when running an Angular .NET Core 3.1 application within IIS

If you run an Angular .NET Core 3.1 application within IIS, make sure you enable the correct HSTS settings:

  • HSTS Enabled = True
  • Redirect Http to Https: True

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.