URG: ADSI remote access problem
Posted on 2004-04-18
I am using ADSI through c# to create a website in IIS5.0 There are couple of examples on the net and they are pretty much the same. My code works on localhost, however when I am trying to use it specifying a remote machine (thats what I ultimately need to do) I get a COM exception and "Access Denied" message.
DirectoryEntry is used to access the remote machines ADSI. I use administrator's username and password and I have tried many things. Username by itself and with domain as included. I tried all AuthenticationMethod propery values. I also found few pages on the net, but nothign helps to solve the problem. I assume it is to do something with permissions or access rights.
I used WMI with the same username and password no problem (System.Management), however ADSI doen't work. My first question is if it is possible to create IIS5.0 website with WMI. I know it is possible for IIS6.0, but I couldn't find anything on IIS5.0. My other question is what else should I try to resolve my ADSI access problem? What could I try and where should I look? May be some links to info?
P.S. Please tell me if you need anything clarifying or a code example.