I have some utility methods that use Microsoft.Web.Administration.ServerManager that I\'ve been having some issues with. Use the following dead simple code for
Microsoft.Web.Administration.ServerManager
var iisManager = new ServerManager(Environment.SystemDirectory + "\\inetsrv\\config\\applicationhost.config");
This works perfectly. No need to change any references