473,320 Members | 2,071 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.

Active Directory Error "The specified domain either does not exist or could not be contacted"

I'm trying to use Active Directory to retrieve information for a user...for
display purposes.. I am not using windows authentication or
impersonation....I am using a fixed user id and password for initializing
the DirectoryEntry object. For example sake our domain name is mydomain.net
so the LDAP path I use is LDAP://DC=mydomain,DC=Net
Notice I am not specifying a server in the LDAP path which and I would
prefer to not use the server name in the path as we have multiple ldap
servers, all mirroring each other for backup, performance and failover. On
my pc, a win2003 server, this work fine in my asp.net app and the
information is retrieved. However when I deploy to a web server on our
domain I receive the following error:
"The specified domain either does not exist or could not be
contacted"

If I include a server name in the LDAP path it works correctly on the
server, i.e. LDAP://adserver/DC=mydomain,DC=Net

Why would I have to user the server name in the path on web server but not,
for the same web app, on my local pc? I am also using the default account
for running asp.net: Network Service on my win2003 pc and ASP.NET on the
win2000 web server.
Thanks
Brad
Nov 18 '05 #1
1 4136
Hi Brad,

Did the ASP.NET app run under same account on the two servers? To Access AD
in an ASP.NET application, it is better to run the app under a domain user
in local administrator. For example, you can config like following:

1. In machine.config, <ProcessModal> element, set the User to System
2. In Web.config, set <identity Impersonate=true />
3. In IIS manager, set the app's anonymous access account to domain user in
local administrator

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dice | last post by:
I have built a .NET based service that uses a number of related 3rd party dlls. If I compile my code into a dll and use this in a test app all is well - however if I compile my code as a service...
2
by: CLEAR-RCIC | last post by:
Hello All, I wrote a .dll that programatically maps two network drives and copies files from one drive to the other. The .dll works fine when using an .exe to call the .dll. When I call the...
3
by: Daniel | last post by:
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws...
3
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
0
by: Kevin Buchan | last post by:
I have some code to query Active Directory group membership, based on an LDAP path. This works beautifully in my test exectuable, but when I try to move the class I built into an ASP.Net web...
9
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
0
by: Glenn | last post by:
Hi All: I have written an Users Registration system that is working just fine when I point to an Active Directory running within a local VMWare instance. It's a very basic AD schema. But, when...
2
by: omer681 | last post by:
i have IIS 5. When i enter to a .asp page in the server, its not loaded and an error named "The specified module could not be found" is appear, and replace everything other. help please?
12
by: dkurth | last post by:
Hi, I'm running PHP 5.2.3 on Windows 2000 Server with IIS 5. I'm trying to get cUrl working, so in my php.ini file, I have this line: extension_dir ="F:\PHP\ext" And later, I have: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...

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.