I am trying to get the Application pools on a local system which I am the administrator using this code
Dim ServerManager As New Microsoft.Web.Administration.ServerManager
colAppPools = ServerManager.ApplicationPools
or
ServerManager.WorkerProcesses()
And the second line results in a FileNotFoundException on redirection.config I checked and there is a file with that name in the %systemroot%\system32\inetsrv\config directory, the file exists and I gave it and the folder permissions for the user, but still I get the same FileNotFound exception.