Can't gather IIS metadata
I'm using this code (and I have also tried any other existing example on the planet earth) to retrieve meta data info from IIS6.
Every time the code run it ends with a COM exception. Anyone can shed some light on this problem ?
Sample code: (C#)
DirectoryEntry
IIS=null;IIS=newDirectoryEntry(@"IIS://"+ WebServerAddress+"/w3svc/1/root",Domain+"\\"+base.Username,base.Password,AuthenticationTypes.SecureSocketsLayer);
Type typ= IIS.Properties["IPSecurity"][0].GetType();
object IPSecurity= IIS.Properties["IPSecurity"][0];once the IIS object gets created, looking at it with the VS debugger visualizer I see 100% of COM exceptions.
I tried to run this code, as console app, within a console (cmd) using admin credentials of the remote machine (runas) but with no luck at all.
IIS is on a different box, remote OS is Win2003 R2, IIS is installed regularly but in SSL (everything). server and dev box are in workgroup (same), so there is no DC involved.
Ok, now I shared enough info, what I do need now is a solution !
thanks to whomever will help.
me-

