Re: re:using System.DirectoryServices.dll assembly
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 03/12/04
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: [OT] Get directory structure without using recursion II"
- Previous message: Ignacio Machin \( .NET/ C# MVP \): "Re: [OT] Get directory structure without using recursion"
- In reply to: jruzicka: "re:using System.DirectoryServices.dll assembly"
- Next in thread: jruzicka: "re:using System.DirectoryServices.dll assembly"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: [OT] Get directory structure without using recursion II"
- Previous message: Ignacio Machin \( .NET/ C# MVP \): "Re: [OT] Get directory structure without using recursion"
- In reply to: jruzicka: "re:using System.DirectoryServices.dll assembly"
- Next in thread: jruzicka: "re:using System.DirectoryServices.dll assembly"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|