Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Imports System.DirectoryServices Problem

Reply
Thread Tools

Imports System.DirectoryServices Problem

 
 
sck10
Guest
Posts: n/a
 
      06-09-2005
Hello,

I am using ASP.NET 2 Beta 2.

When I tried to use Imports System.DirectoryServices I get the following
error:

Namespace or type specified in the imports System.DirectoryServices can not
be found.

Any help with this would be appreciated.

--
Thanks in advance,

sck10


 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      06-09-2005
You'll probabaly need to add an assembly reference in web.config:

<compilation>
<assemblies>
<add assembly="System.DirectoryServices, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>


-Brock
DevelopMentor
http://staff.develop.com/ballen



> Hello,
>
> I am using ASP.NET 2 Beta 2.
>
> When I tried to use Imports System.DirectoryServices I get the
> following error:
>
> Namespace or type specified in the imports System.DirectoryServices
> can not be found.
>
> Any help with this would be appreciated.
>
> sck10
>




 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      06-10-2005
Thanks for Brock's informative suggestion,

Hi Sck10,

The problem you mentioned is caused by the System.DirectoryServices
namespace is in the System.DirectoryServices.dll assembly which is not
referenced by default in .net application. You can use the Project--->Add
Reference to add that assembly's reference into your application or
directly modify your web.config as Brock has suggested (since ASP.NET2.0
web application is projectless, all the assembly references are configured
in web.config).

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP problem with System.DirectoryServices goldan ASP .Net 1 03-09-2005 09:42 PM
System.DirectoryServices Brian ASP .Net Security 3 06-09-2004 08:29 PM
Re: System.DirectoryServices Scott G. ASP .Net 0 05-01-2004 05:49 PM
System.DirectoryServices David M. Weprin ASP .Net 1 10-18-2003 05:06 AM
Imports 'System.DirectoryServices' cannot be found. Edward ASP .Net 1 07-08-2003 12:45 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57