473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

System.DirectoryServies can not be found

I trying to build a asp.net development env on my XP laptop to off-load
the development from our Win2k3 IIS development server.

I installed,
..net 2.0 SDK
IIS for XP
configured asp for net
but when i try to run my aspx web pages on the laptop, I get the
following error msg upon importing the System.DirectoryServices
namespace:

"Namespace or type specified in the Imports 'System.DirectoryServices'
doesn't contain any public member or cannot be found. Make sure the
namespace or the type is defined and contains at least one public
member. Make sure the imported element name doesn't use any aliases."

I think I am missing some piece, but I am not sure what. I didn't
install our dev servers, so I am not sure what other pieces are needed.

If I don't import the System.DirectoryServices namespace, then the app
works fine.

Any help would be greatly appreciated.

Thanks
Saqib
http://www.full-disk-encryption.net

Jan 11 '07 #1
2 5336
You need to add an assembly reference to it first. It isn't a default
assembly. You can either do that with an Assembly page level directive or
via the web.config file using the <assemblies/element. Both are
documented in the SDK docs. VS also makes this easy for you, so maybe you'd
like to try using one of the free versions?

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Saqib Ali" <do*********@gmail.comwrote in message
news:11**********************@k58g2000hse.googlegr oups.com...
>I trying to build a asp.net development env on my XP laptop to off-load
the development from our Win2k3 IIS development server.

I installed,
.net 2.0 SDK
IIS for XP
configured asp for net
but when i try to run my aspx web pages on the laptop, I get the
following error msg upon importing the System.DirectoryServices
namespace:

"Namespace or type specified in the Imports 'System.DirectoryServices'
doesn't contain any public member or cannot be found. Make sure the
namespace or the type is defined and contains at least one public
member. Make sure the imported element name doesn't use any aliases."

I think I am missing some piece, but I am not sure what. I didn't
install our dev servers, so I am not sure what other pieces are needed.

If I don't import the System.DirectoryServices namespace, then the app
works fine.

Any help would be greatly appreciated.

Thanks
Saqib
http://www.full-disk-encryption.net

Jan 11 '07 #2
Thanks Joe !!! :)

I realized that I had forgot to define the Assembly in web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="System.DirectoryServices, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
</system.web>
</configuration>

saqib
http://www.full-disk-encryption.net

Jan 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Richard Lionheart | last post by:
Hi All, I tried using RegEx, but the compiler barfed with "The type of namespace 'RegEx' could not be found. Prior to this, I had the same problem with MatchCollection, but discovered it's...
3
by: Michael Bøcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
1
by: Mark Miller | last post by:
I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter installed on the server in question and up until a day...
3
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
1
by: Jo Yoshida | last post by:
http://groups.google.com/groups?hl=en&lr=&threadm=F9A88B8F-6DDD-405C-9559-B2379ABE8CA7%40microsoft.com&rnum=1&prev=/groups%3Fq%3DSystem.MissingFieldException:%2BField%2Bnot%2Bfound%26hl%3Den%26lr%3D%2...
1
by: Olav Tollefsen | last post by:
I get the included error message when trying to run my ASP.NET application under Windows Server 2003 (with all updates installed). How can I troubleshoot this? Olav File or assembly name...
0
by: Alan Pretre | last post by:
Our application has received this exception. It is a Win32 service that runs 24/7. The app has been in the field at various sites for about 3 yrs and we have never seen this error until now. ...
2
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.