Is there a way in the .NET framework to validate that a process has access to a specific WCF address namespace without attempting to call ServiceHost.Open and capturing the resulting AddressAccessDeniedException?
Right now if that exception is thrown I restart the service in elevated (administrator) mode so that I can properly reserve the namespace. But it seems like there should be a way to do that without waiting for the exception to be thrown that is a little easier to read in the code.