.Net Publishing Error “ASPCONFIG: allowDefinition=’MachineToApplication'” RESOLVED!!!

For years, I’ve been plagued with the following error message when I publish Visual Studio MVC/WEB Api projects: error ASPCONFIG: It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. It doesn’t matter if Read more about .Net Publishing Error “ASPCONFIG: allowDefinition=’MachineToApplication'” RESOLVED!!![…]