473,941 Members | 35,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DirectoryServic es classes not being recognized

Hi,

I had .Net 1.1 app that worked fine. I recently migrated it to 2.0 but
am getting compilation errors, among which DirectoryServic es classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.Director yServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.Director yServices statement is.
Its listing errors all over for the classes under its namespace:

Any suggestions will be appreciated.

TIA.

Type 'ResultProperty Collection' is not defined.
Type 'ResultProperty ValueCollection ' is not defined.
Type 'DirectoryEntry ' is not defined.
Type 'DirectorySearc her' is not defined.
Type 'SearchResult' is not defined.

Mar 22 '07 #1
7 2825
On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
Hi,

I had .Net 1.1 app that worked fine. I recently migrated it to 2.0 but
am getting compilation errors, among which DirectoryServic es classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.Director yServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.Director yServices statement is.
Its listing errors all over for the classes under its namespace:

Any suggestions will be appreciated.

TIA.

Type 'ResultProperty Collection' is not defined.
Type 'ResultProperty ValueCollection ' is not defined.
Type 'DirectoryEntry ' is not defined.
Type 'DirectorySearc her' is not defined.
Type 'SearchResult' is not defined.
Solution Explorer - References - Add Reference

Mar 22 '07 #2
On Mar 22, 8:53 am, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:


Hi,
I had .Net 1.1 app that worked fine. I recently migrated it to 2.0 but
am getting compilation errors, among which DirectoryServic es classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.Director yServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.Director yServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultProperty Collection' is not defined.
Type 'ResultProperty ValueCollection ' is not defined.
Type 'DirectoryEntry ' is not defined.
Type 'DirectorySearc her' is not defined.
Type 'SearchResult' is not defined.

Solution Explorer - References - Add Reference- Hide quoted text -

- Show quoted text -
Thanks Alexey, but like I said it is already there in the reference
list and I have tried removing and adding it back many times through
the solution you proposed.
thanks any way.

Mar 22 '07 #3
On Mar 22, 3:27 pm, aamirghan...@gm ail.com wrote:
On Mar 22, 8:53 am, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :


On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
Hi,
I had .Net 1.1 app that worked fine. I recently migrated it to 2.0 but
am getting compilation errors, among which DirectoryServic es classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.Director yServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.Director yServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultProperty Collection' is not defined.
Type 'ResultProperty ValueCollection ' is not defined.
Type 'DirectoryEntry ' is not defined.
Type 'DirectorySearc her' is not defined.
Type 'SearchResult' is not defined.
Solution Explorer - References - Add Reference- Hide quoted text -
- Show quoted text -

Thanks Alexey, but like I said it is already there in the reference
list and I have tried removing and adding it back many times through
the solution you proposed.
thanks any way.- Hide quoted text -

- Show quoted text -
My apologies, I misread your post.

Looks strange then... Are you sure that the .NET version is correctly
configured in IIS?

Mar 22 '07 #4
On Mar 22, 9:38 am, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Mar 22, 3:27 pm, aamirghan...@gm ail.com wrote:


On Mar 22, 8:53 am, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
Hi,
I had .Net 1.1 app that worked fine. I recently migrated it to 2.0 but
am getting compilation errors, among which DirectoryServic es classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.Director yServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.Director yServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultProperty Collection' is not defined.
Type 'ResultProperty ValueCollection ' is not defined.
Type 'DirectoryEntry ' is not defined.
Type 'DirectorySearc her' is not defined.
Type 'SearchResult' is not defined.
Solution Explorer - References - Add Reference- Hide quoted text -
- Show quoted text -
Thanks Alexey, but like I said it is already there in the reference
list and I have tried removing and adding it back many times through
the solution you proposed.
thanks any way.- Hide quoted text -
- Show quoted text -

My apologies, I misread your post.

Looks strange then... Are you sure that the .NET version is correctly
configured in IIS?- Hide quoted text -

- Show quoted text -
yep, its ASP.net version 2.0.50727 as shown on the IIS6 manager
I am getting the compilation errors (while building solution) before
it even hits the IIS.

Mar 22 '07 #5
On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
I recently migrated it to 2.0 but :
Well, I think I know what the problem is and it's not because of
DirectoryServic es.

You have converted the project, and because of the "new compilation
model" some references could be broken

Issue 1: Code-behind class file (CB-CB) references
Issue 2: Stand-alone class file (SA-CB) references
http://msdn2.microsoft.com/en-us/library/aa479312.aspx

Migrating to ASP.NET 2.0
http://msdn2.microsoft.com/en-us/asp.net/aa336622.aspx

I'd also recommend converting your Web Site Project to be ASP.NET Web
Application project. (You have to create new project and copy all the
classes and web forms)

Mar 22 '07 #6
On Mar 22, 3:12 pm, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
I recently migrated it to 2.0 but :

Well, I think I know what the problem is and it's not because of
DirectoryServic es.

You have converted the project, and because of the "new compilation
model" some references could be broken

Issue 1: Code-behind class file (CB-CB) references
Issue 2: Stand-alone class file (SA-CB) referenceshttp://msdn2.microsoft .com/en-us/library/aa479312.aspx

Migrating to ASP.NET 2.0http://msdn2.microsoft .com/en-us/asp.net/aa336622.aspx

I'd also recommend converting your Web Site Project to be ASP.NET Web
Application project. (You have to create new project and copy all the
classes and web forms)
Alexey, I have decided to converting it to Web Application Project.
thanks for the good leads. I will notify this usergroup of any
success.

thanks again.

Mar 22 '07 #7
On Mar 22, 3:44 pm, aamirghan...@gm ail.com wrote:
On Mar 22, 3:12 pm, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :


On Mar 22, 2:38 pm, aamirghan...@gm ail.com wrote:
I recently migrated it to 2.0 but :
Well, I think I know what the problem is and it's not because of
DirectoryServic es.
You have converted the project, and because of the "new compilation
model" some references could be broken
Issue 1: Code-behind class file (CB-CB) references
Issue 2: Stand-alone class file (SA-CB) referenceshttp://msdn2.microsoft .com/en-us/library/aa479312.aspx
Migrating to ASP.NET 2.0http://msdn2.microsoft .com/en-us/asp.net/aa336622.aspx
I'd also recommend converting your Web Site Project to be ASP.NET Web
Application project. (You have to create new project and copy all the
classes and web forms)

Alexey, I have decided to converting it to Web Application Project.
thanks for the good leads. I will notify this usergroup of any
success.

thanks again.- Hide quoted text -

- Show quoted text -
SOLUTION:
Wierd thing happened but it solved the build error problem.
I re-converted the original 1.1 project to 2.0 in VS 2005 but this
time commented out the references to Crystaldecision s assemblies in
the web.config before I did the conversion. I don't know what does
CrystalDecision s has to do with the System.Director yServices but that
did the trick. I removed the ref to CrystalDecision s assemblies
because that was another set of errors I was getting during the build
time in addition to System.Director yServices. Now I have loads and
loads of warnings to deal with but thats another story :)

Mar 26 '07 #8

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

Similar topics

12
9642
by: hykim | last post by:
Hello, everyone. according to MSDN, there is any constructor of System.DirectoryServices.SearchResultCollection Class. if I implement DirectorySearcher.FindAll() method by myself, then how can I instanciate SearchResultCollection Class. more clearly, a SearchResult object is created, at the inside of FindAll() method, then how can I put this object into the SearchResultCollection object. there is any method releated to input operation.
10
9920
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
1
7396
by: Jason Gleason | last post by:
I am using the following method in a web service that utilizes the system.directoryservices namespace: public ArrayList GetAllAppPools(){ System.DirectoryServices.DirectoryEntry apppools = new DirectoryEntry("IIS://webserver/W3SVC/AppPools"); ArrayList appPoolNames = new ArrayList(); foreach(DirectoryEntry de in apppools.Children) { appPoolNames.Add(de.Name);
5
2081
by: Keith Jakobs, MCP | last post by:
Hi All.... I'm having a HECK of a time connecting to Active Directory using VB in Visual Studio.NET 2003. Can anyone PLEASE help me? All I am trying to do is list the current members of our Active Directory on a web page. If I can connect to the AD interfaces, then I think I can handle it from there. I do have a VS.NET C# project successfully working and enumerating names,
7
2940
by: turbon | last post by:
Hello, I am writing code, which will copy webServices from one IIS 6.0 webserver to another and using DirentoryServices to achieve this purpose. And I have problems with authentication - I get an error whenever I try to read properties of DirectoryEntry object. I had same problems when I was using WMI, but there setting ConnectionOptions co = new ConnectionOptions(); co.Authentication = AuthenticationLevel.PacketPrivacy; solved the...
86
4728
by: jopperdepopper | last post by:
Hi, finally giving php 5 a go, and going over the new approach to classes. Can someone clarify the public, private and protected to me? I quote the php manual: "The visibility of a property or method can be defined by prefixing the declaration with the keywords: public, protected or private. Public declared items can be accessed everywhere."
1
3221
by: aamirghanchi | last post by:
Hi, I recently converted an ASP .net 1.1 project to 2.0 in VS 2005. Even though System.DirectoryServices reference has been added to the project, still for some reasons the Imports System.DirectoryServices is not being recognized and there is a build time warning on it stating: 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...
0
2714
by: fantasticamir | last post by:
I have a simple program using a couple of classes and it compiled successfully but while it is linking I have the following problem: g++ -Wall -lcu -lglu ACL2MDD.o Link.o Rule.o reachability.o -o Reachability Link.o: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** Error 1 Another observation is the Link.o and Rule.o files, both of them are HUGE (20 MB) which is odd because the classes are...
7
16362
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using this code to get groups for a user and getting a error (5) on the GetAuthorizationGroups() function . There are two domains. This function works on the local domain but does not work on the other domain. Other functions work on the other domain like get all the users and get all the groups and I can validate users on the other domain so I think I am communciating with the other domain OK just not with the...
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11113
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11296
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10659
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9858
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6080
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4450
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.