IIS (There was an error while performing this operation)

enter image description here

This error occurred for me when trying to double-click on the Logging module for any site with a bad Web.config.

"Bad" includes Web.configs that just have a module IIS doesn't understand - in my case, IIS 10 couldn't understand the <rewrite> tag, and exploded with this extremely confusing error.

You can verify this by just commenting out the contents of your Web.config. The error goes away - then just gradually reduce how much is being commented out until you find the culprit, and track down that solution.


Add <aspNetCore> back and also install ASP.NET Core module on this machine,

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/aspnet-core-module?tabs=aspnetcore2x

I also wrote a tool to better automate such detection,

https://www.jexusmanager.com/tutorials/oob-500.html