I have an app that accesses information about websites running on IIS on a remote machine, using DirectoryEntry objects (in System.DirectoryServices).
Any client machine that runs the app needs to have IIS installed or the app throws a System.Runtime.InteropServices.COMException when it accesses the IIS information.
Is there a way I can just include a dll, add a reference, or something similar to be able to access that information without the client machine installing IIS? Or is there a better way to access that information (without System.DirectoryServices, perhaps) that would also bypass this requirement?
EDIT: Looking at this problem again, and seeing the questions here and here, I believe it is not possible to use DirectoryServices to get this information. I'll leave it open for alternatives to be suggested, maybe more info on WBEM scripts?