I have to recycle IIS (version 7.5) application pool programatically using c#. When I try to get ApplicationPoolCollection using "ServerManager" class UnauthorizedAccessException raised. I guess I have to use impersonation. But I don t know to use impersonation. And is there anyway to use impersonation with attribute instead of web.config?
I need to be able to validate a given username and password against Active Directory and return whether that user exists. My setup is that I have two web servers in a DMZ, and then a SQL Server in ...