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?
So what I understand is that you're trying to get website info from remote IIS servers, but the client that is trying to get that information must have IIS installed in order to be able to query those remote systems. And it's not because it's using some kind of web-app to get the info; it's using some functionality that is installed when IIS is installed.
What kind of information are you after? Can't you use WBEM scripts targeting the IIS machine to get the information you're after?