IIS 7 and Above
error in GetWebConfigCommand
Re: error in GetWebConfigCommand
Sep 04, 2011 10:58 PM|NickBourke|LINK
It's been a while since this was asked, but I recently encountered the same problem in one of our test environments.
After reinstalling .NET 4.0, reinstalling IIS etc, we eventually found the problem to be that .NET 3.5 had not been installed on the machine. Installing this resolved the problem.
Hope this helps someone else in the same situation.