Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-04-2008
Member
 
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:

Quote:
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()

Reply With Quote
  #2  
Old 02-04-2008
Member
 
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.
Reply With Quote
  #3  
Old 02-04-2008
Member
 
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.
Reply With Quote
  #4  
Old 03-04-2008
Member
 
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.
Reply With Quote
  #5  
Old 03-04-2008
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "C# .NET Application looses Connection to the Active Directory Server"
Thread Thread Starter Forum Replies Last Post
Active Directory connection failure after upgrading Mac OS X Lion 10.7.4 Baanbhatt Operating Systems 2 15-05-2012 07:41 PM
is there a possible way to test LDAP connection on Active Directory Nityaa Active Directory 4 29-12-2011 06:01 AM
Server Active Directory not installing Ikrama Windows Software 5 26-05-2011 02:27 PM
Installation of Active directory on Windows Server 2003 server? austin26 Networking & Security 2 06-10-2009 09:10 AM
LDAP connection on local server without domain and active directory SKREECH Active Directory 3 22-02-2008 10:44 PM


All times are GMT +5.5. The time now is 08:55 AM.