System.DirectoryServices

Last post 06-16-2009 10:33 AM by dcroome. 5 replies.

Sort Posts:

  • System.DirectoryServices

    11-18-2005, 5:57 PM
    • Member
      25 point Member
    • Ikinal
    • Member since 11-18-2005, 10:54 PM
    • Posts 5
    Hi,

    I am trying to convert an ASP.NET 1.1 application to ASP.NET 2.0 using Visual Studio 2005, but I'm running into some issues. The biggest issue is that upon compilation, I receive this error: Type "System.DirectoryServices.DirectoryEntry" is not defined.

    Everything was working fine before the conversion, so I don't know exactly what's going on here. Any help will be appreciated!

    Thanks,
    I. Kinal
  • Re: System.DirectoryServices

    12-05-2005, 1:08 PM
    • Member
      25 point Member
    • Ikinal
    • Member since 11-18-2005, 10:54 PM
    • Posts 5

    Well, I finally managed to fix this problem. It appears that the Visual Studio conversion wizard did not fully convert my files, so after I started troubleshooting some of the build problems, the rest, including this one, went away, and my application is now working properly on ASP.NET 2.0

    I. Kinal

  • Re: System.DirectoryServices

    12-05-2005, 7:11 PM
    • Member
      5 point Member
    • jmorleyk
    • Member since 12-06-2005, 12:09 AM
    • Posts 1
    Care to explain your solution?  I'm running into the same problem, but I'm not seeing any build problems beyond the System.DirectoryServices namespace issue.
  • Re: System.DirectoryServices

    12-05-2005, 10:49 PM
    • Member
      25 point Member
    • Ikinal
    • Member since 11-18-2005, 10:54 PM
    • Posts 5

    Are there any errors reported in the conversion report? In mine there was an error with the page that had the calls to System.DirectoryServices. It also seems to me that building web projects in VS2005 is buggy. I seemed to get different errors when I tried to rebuild, without changing anything, or if I had a different page open.

    If I remember correctly, most of my edits dealt with either modifying or deleting the "inherits" attribute from the first line of the file.

    I. Kinal

  • Re: System.DirectoryServices

    12-05-2005, 11:14 PM
    • Star
      14,458 point Star
    • ScottGu
    • Member since 06-05-2002, 8:36 PM
    • Redmond, WA
    • Posts 2,004
    • AspNetTeam
      Moderator

    The System.DirectoryServices error is probably related to you not having a reference to the System.Directory assembly in your project (note: this assembly isn't added by default).

    To add a reference to System.DirectoryServices, click on the project node in the IDE and then right-click and select "Add Reference".  Within this dialog you can then scroll down and select the "System.DirectoryServices.dll" assembly.  Once you add that the error should go away.

    Hope this helps,

    Scott

  • Re: System.DirectoryServices

    06-16-2009, 10:33 AM
    • Member
      2 point Member
    • dcroome
    • Member since 06-16-2009, 10:31 AM
    • Posts 1

    I am trying to add the System.DirectoryServices reference to a VS 2005 Sql CLR project.  The Add reference tool only allows me a small set of .net assemblies, not including that one.

    What am I doing wrong?

Page 1 of 1 (6 items)