Host RestAPI inside IIS
问题 I have a rather simple .NET WebApi application which I'm trying to host inside IIS. Followed all of the instructions from MS site about this. here is the startup method for it. public static void Main(string[] args) { var host = WebHost.CreateDefaultBuilder(args) .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup<Startup>() .Build(); host.Run(); } I configured the Application pool to not use any managed code but I'm getting still this error in logs