Imports System.DirectoryServices Problem


S

sck10

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.
 
Ad

Advertisements

B

Brock Allen

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>
 
Ad

Advertisements

S

Steven Cheng[MSFT]

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top