Re: re:using System.DirectoryServices.dll assembly

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 03/12/04


Date: Fri, 12 Mar 2004 16:37:05 +0100

You need the assemblies full name :

<%@ Assembly name="System.DirectoryServices, Version=<yourversionhere>,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"%>
<%@ Import namespace="System.DirectoryServices"%>

Check the version in the GAC.

Willy.

"jruzicka" <james.ruzicka@us.army-dot-mil.no-spam.invalid> wrote in message
news:4051d4eb$1_2@Usenet.com...
>I tried what you mentioned and this is the error i get now:
> I put the line first thing in my login.aspx file that uses
> login.aspx.cs
>
> My webconfig compilation is set to use language "vb", would this be a
> problem? The rest of my app will be using vb.net codebehind and I
> want to use this c# codebehind for the login process. Have any
> ideas?
>
>
> Parser Error
> Description: An error occurred during the parsing of a resource
> required to service this request. Please review the following
> specific parse error details and modify your source file
> appropriately.
>
> Parser Error Message: File or assembly name System.DirectoryServices,
> or one of its dependencies, was not found.
>
> Source Error:
>
>
> Line 1: <%@ Assembly Name="System.DirectoryServices" %>
> Line 2: <%@ Page Language="C#" Inherits="ITC3.login"
> Src="login.aspx.cs" trace="true" %>
>
>
>
> Source File: c:\inetpub\wwwroot\rtsnet\rts\login.aspx Line: 1
>
> Assembly Load Trace: The following information can be helpful to
> determine why the assembly 'System.DirectoryServices' could not be
> loaded.
>
>
> === Pre-bind state information ===
> LOG: DisplayName = System.DirectoryServices
> (Partial)
> LOG: Appbase = file:///c:/inetpub/wwwroot/rtsnet
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
>
> LOG: Policy not being applied to reference at this time (private,
> custom, partial, or location-based assembly bind).
> LOG: Post-policy reference: System.DirectoryServices
> LOG: Attempting download of new URL
> file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/rtsnet/4ef57568/2619b47/System.DirectoryServices.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/rtsnet/4ef57568/2619b47/System.DirectoryServices/System.DirectoryServices.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/rtsnet/bin/System.DirectoryServices.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/rtsnet/bin/System.DirectoryServices/System.DirectoryServices.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/rtsnet/4ef57568/2619b47/System.DirectoryServices.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/rtsnet/4ef57568/2619b47/System.DirectoryServices/System.DirectoryServices.EXE.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/rtsnet/bin/System.DirectoryServices.EXE.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/rtsnet/bin/System.DirectoryServices/System.DirectoryServices.EXE.
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com



Relevant Pages

  • Re: Assembly conversion to Pocket Pc format
    ... string strfilename = ... for .NET assemblies, i.e. it is simply passing them through unmodified. ... rather I want to download from HTTP or HTTPS. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Intermittent MissingFieldException
    ... Microsoft Online Support ... |> asp.net application's private bin path. ... |> for those assemblies. ... |> | Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Question about embedded winform controls
    ... You cannot acces the local filesystem from an embedded windows user control. ... Downloaded assemblies are placed in the download ... You can change the security policy for the assembly that you download. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Intermittent MissingFieldException
    ... log4net assembly is referenced thus: ... because the problem never occurs with our other assemblies. ... because the Infrastructure assembly wasn't loading properly. ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET Deployment
    ... in your Web Project assembly and must exist on the server. ... That's where ASP.NET will look for the support assemblies. ... > ASP.NET web apps), and whenever I install my app, it keeps on showing the ... > details and modify your source file appropriately. ...
    (microsoft.public.dotnet.framework.aspnet)