Results 1 to 5 of 5

Thread: C# .NET Application looses Connection to the Active Directory Server

  1. #1
    Join Date
    Oct 2004
    Posts
    17

    C# .NET Application looses Connection to the Active Directory Server

    He guys I need some urgent help from you all. We are running a Intranet Web Application at our office since past 2 years. It was working fine without any problem until last week when we required to move onto another server. While doing the change in server we needed to upgrade from Net 1 to Dot Net 2. We moved the server successfully but now our teamsearch is busy searching AD for or all users. Also the code is not working anymore.

    When we start IIS, it works good for some time but suddenly after an hour it starts giving problems and domains wont answer the queries anymore. This is the message we received:

    at System.DirectoryServices.DirectoryEntry.Bind(BooleanthrowIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_AdsObject()
    at System.DirectoryServices.DirectorySearcher.FindAll(BooleanfindMoreThanOne)
    at System.DirectoryServices.DirectorySearcher.FindOne()

  2. #2
    Join Date
    Sep 2004
    Posts
    73

    RE: C# .NET Application looses Connection to the Active Directory Serv

    To me it sounds like a security problem. As you upgraded your Windows Server recently. Anyway can you just verify the privileges of the account that is running the application? Most probably it runs on a local account. You may also need to configure it to use a domain user account.

    Just check and let me know the results.

  3. #3
    Join Date
    Oct 2004
    Posts
    17

    Re: C# .NET Application looses Connection to the Active DirectoryServ

    Thank you very much for the help friend. As you suggested i checked the same and found that the IIS is running as Network_Service. So do i still need to run the Application Pool with my user Account?

    Please help.

  4. #4
    Join Date
    Sep 2004
    Posts
    79

    Re: C# .NET Application looses Connection to the Active Directory Serv

    Well then most probably the issue is with wildcard port exhaustion. Did you checked NETSTAT ? Is it showing up a large number of connections sitting in "TIME WAIT" status? Apart from this, if you are getting Server not operational error than it is going to be difficult to figure out as there use to be different types of network problems that can cause it. So I think getting a network trace when the failure occurs might help as well.

  5. #5
    Join Date
    Jul 2004
    Posts
    114

    Re: C# .NET Application looses Connection to the Active Directory Serv

    Hello BuvDeep. You might need to check the followinh article describing:

    System.DirectoryServices and connection pooling

    When i was struggling with very similar problem like yours, it really helped me.

Similar Threads

  1. Replies: 2
    Last Post: 15-05-2012, 07:41 PM
  2. Replies: 4
    Last Post: 29-12-2011, 06:01 AM
  3. Server Active Directory not installing
    By Ikrama in forum Windows Software
    Replies: 5
    Last Post: 26-05-2011, 02:27 PM
  4. Installation of Active directory on Windows Server 2003 server?
    By austin26 in forum Networking & Security
    Replies: 2
    Last Post: 06-10-2009, 09:10 AM
  5. Replies: 3
    Last Post: 22-02-2008, 10:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,105,052.30261 seconds with 17 queries