IIS 7 Change DefaultAppPool to Network Service for this error ‘System.DirectoryServices.DirectoryServicesCOMException’

You may need to do this when your running you web component WCF service or whatever and you receive unusual errors like ‘System.DirectoryServices.DirectoryServicesCOMException’ when using directory services.   This is due to the fact that by default IIS7 runs as ‘IIS APPPOOL\\DefaultAppPool’  and doesn’t have enough permission. Change to Network service and it should be…

2