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


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”


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)





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


                .ConfigureWebHostDefaults(webBuilder =>











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.