IIS (There was an error while performing this operation) IIS (There was an error while performing this operation) asp.net asp.net

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.


This error is typically caused by a reference inside the web.config which cannot be resolved by the dotNet runtime.

If you are using dotNet core, AND you installed the dotNet core hosting bundle BEFORE you configured your server to run IIS you may get this error.

To fix it in this case, you need to re-run the dotNet core hosting bundle installer AGAIN, in "repair mode"

As described in the box entitled "Important", here.