-1

Web サイトでユーザーを認証するために Active Directory を使用する必要があります。私たちの開発グループは、次のようなコードを使用するように言っています。

using System.DirectoryServices.ActiveDirectory;

public partial class _Default : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {

        LdapAuthentication objAuthenticate;

DirectoryServices.dll を bin ディレクトリに追加でき、アセンブリを web.config に追加しましたが、LdapAuthentication タイプが System.Directory.ActiveDirectory にありません。The type or namespace name 'LdapAuthentication' could not be found... と表示されます...誰かが私が間違っていることを教えてもらえますか? ありがとう。

4

1 に答える 1

1

Why do you assume it should be there? LdapAuthentication is not a type that is available in the .Net framework. I did come across this howto page where they describe to build such a class, however.

于 2012-08-02T10:15:28.170 に答える