473,320 Members | 2,004 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,320 software developers and data experts.

DirectoryServices 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 DirectoryServices classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.DirectoryServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.DirectoryServices statement is.
Its listing errors all over for the classes under its namespace:

Any suggestions will be appreciated.

TIA.

Type 'ResultPropertyCollection' is not defined.
Type 'ResultPropertyValueCollection' is not defined.
Type 'DirectoryEntry' is not defined.
Type 'DirectorySearcher' is not defined.
Type 'SearchResult' is not defined.

Mar 22 '07 #1
7 2799
On Mar 22, 2:38 pm, aamirghan...@gmail.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 DirectoryServices classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.DirectoryServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.DirectoryServices statement is.
Its listing errors all over for the classes under its namespace:

Any suggestions will be appreciated.

TIA.

Type 'ResultPropertyCollection' is not defined.
Type 'ResultPropertyValueCollection' is not defined.
Type 'DirectoryEntry' is not defined.
Type 'DirectorySearcher' 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...@gmail.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 DirectoryServices classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.DirectoryServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.DirectoryServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultPropertyCollection' is not defined.
Type 'ResultPropertyValueCollection' is not defined.
Type 'DirectoryEntry' is not defined.
Type 'DirectorySearcher' 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...@gmail.com wrote:
On Mar 22, 8:53 am, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:


On Mar 22, 2:38 pm, aamirghan...@gmail.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 DirectoryServices classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.DirectoryServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.DirectoryServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultPropertyCollection' is not defined.
Type 'ResultPropertyValueCollection' is not defined.
Type 'DirectoryEntry' is not defined.
Type 'DirectorySearcher' 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...@gmail.com wrote:


On Mar 22, 8:53 am, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
On Mar 22, 2:38 pm, aamirghan...@gmail.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 DirectoryServices classes
are not being recognized by the VS 2005 at build time. I can clearly
see the reference to System.DirectoryServices 2.0.0 GAC in the
reference list and there is no error where the Imports
System.DirectoryServices statement is.
Its listing errors all over for the classes under its namespace:
Any suggestions will be appreciated.
TIA.
Type 'ResultPropertyCollection' is not defined.
Type 'ResultPropertyValueCollection' is not defined.
Type 'DirectoryEntry' is not defined.
Type 'DirectorySearcher' 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...@gmail.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
DirectoryServices.

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...@gmail.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
DirectoryServices.

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...@gmail.com wrote:
On Mar 22, 3:12 pm, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:


On Mar 22, 2:38 pm, aamirghan...@gmail.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
DirectoryServices.
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 Crystaldecisions assemblies in
the web.config before I did the conversion. I don't know what does
CrystalDecisions has to do with the System.DirectoryServices but that
did the trick. I removed the ref to CrystalDecisions assemblies
because that was another set of errors I was getting during the build
time in addition to System.DirectoryServices. 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
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...
10
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
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...
5
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...
7
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...
86
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...
1
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...
0
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 ...
7
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.