Hi,I am new to using .net remoting and am attempting to write an application to process login's against Active Directory. Currently I have the following code for my remote object:
using System;using System.Text;using System.Collections;using System.DirectoryServices;using System.Runtime.Remoting;using System.Runtime.Remoting.Channels;using System.Runtime.Remoting.Channels.Http;namespace ADRemote{
/// <summary>
{
_path = @"LDAP://domain.com";
}
DirectoryEntry entry =
DirectorySearcher search =
search.Filter = "(SAMAccountName=" + username + ")";
search.PropertiesToLoad.Add("cn");
SearchResult result = search.FindOne();
_path = result.Path;
_filterAttribute = (
search.Filter = "(cn=" + _filterAttribute + ")";
search.PropertiesToLoad.Add("memberOf");
StringBuilder groupNames =
dn = (
equalsIndex = dn.IndexOf("=", 1);
commaIndex = dn.IndexOf(",", 1);
groupNames.Append(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1));
groupNames.Append("|");
}This compiles, but when i try to reference it from my client, in this case a Web form to login, I get this error: Exception Details: System.Runtime.Remoting.RemotingException: Requested Service not foundCan someone explain how to implement remoting using http channel? Is there something special I need to do to IIS or to my client app?Thanks in advance,Nathan