Getting Printers from AD error "Unknown error (0x80005000)" on Fin

Discussion in 'ASP .Net' started by =?Utf-8?B?bXVsdGlzeW5j?=, Dec 13, 2005.

  1. I'm getting the following error:
    Unknown error (0x80005000)

    It gives this error on the line "results = searcher.FindAll()"

    -----code------
    Dim rootentry As New
    System.DirectoryServices.DirectoryEntry"LDAP://mydomain.com/", "user1",
    "pss1", AuthenticationTypes.Secure)
    Dim searcher As New System.DirectoryServices.DirectorySearcher(rootentry)
    searcher.PageSize = 500
    searcher.Filter = "(&(objectClass=PrintQueue)(serverName=" &
    "printerserver1" & "))"
    Dim results As DirectoryServices.SearchResultCollection
    results = searcher.FindAll()
    -----code-----

    This code works in VB.net when i run it as a windows application.
    Please help!
     
    =?Utf-8?B?bXVsdGlzeW5j?=, Dec 13, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Morgan Strickland
    Replies:
    0
    Views:
    452
    Morgan Strickland
    Dec 20, 2003
  2. mir nazim

    cannot fin sum() in python 2.3

    mir nazim, May 24, 2004, in forum: Python
    Replies:
    1
    Views:
    312
    Peter Maas
    May 24, 2004
  3. Neo
    Replies:
    0
    Views:
    411
  4. Arthur Penn
    Replies:
    4
    Views:
    403
    Krish Shenoy[MSFT]
    Jan 12, 2004
  5. dare ruby
    Replies:
    4
    Views:
    126
    Heesob Park
    Mar 20, 2010
Loading...

Share This Page