Click here to Skip to main content
15,919,774 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how we will count the number of visitors of particular site in asp.ne with c# Pin
_AK_3-Aug-06 19:14
_AK_3-Aug-06 19:14 
GeneralRe: how we will count the number of visitors of particular site in asp.ne with c# Pin
Amit Agarrwal4-Aug-06 22:43
Amit Agarrwal4-Aug-06 22:43 
GeneralRe: how we will count the number of visitors of particular site in asp.ne with c# Pin
_AK_6-Aug-06 19:07
_AK_6-Aug-06 19:07 
Questiondatabase problem in vb.net Pin
amaneet3-Aug-06 17:45
amaneet3-Aug-06 17:45 
AnswerRe: database problem in vb.net Pin
psamy3-Aug-06 19:56
psamy3-Aug-06 19:56 
AnswerRe: database problem in vb.net Pin
thomas_joyee3-Aug-06 20:19
thomas_joyee3-Aug-06 20:19 
GeneralRe: database problem in vb.net Pin
_AK_3-Aug-06 20:32
_AK_3-Aug-06 20:32 
QuestionActive directory entry can't be found Pin
AndrewNPDC3-Aug-06 16:52
AndrewNPDC3-Aug-06 16:52 
Hi,

I have a web app that searches AD to get Windows user details. The code for this is in a class that I either access directly from my web page or via a web service. It works when accessed from the web page but not via the web service.

This is the error I get when the web service attempts to run the code:

Server was unable to process request. --> The specified domain either does not exist or could not be contacted.

The code I'm using looks like this:

DirectoryEntry entryRoot = new DirectoryEntry("LDAP://RootDSE");<br />
			string domain = entryRoot.Properties["defaultNamingContext"][0].ToString();<br />
<br />
<br />
			DirectoryEntry searchRoot = new DirectoryEntry(@"LDAP://"+domain);  // ADS user/password<br />
			DirectorySearcher search = new DirectorySearcher(searchRoot);



The failure occurs at: string domain = entryRoot.Properties["defaultNamingContext"][0].ToString();

Any light that is shed on this issue will be greatly appreciated. Thanks in advance.

Arrogance and ignorance go hand in hand - Metallica

QuestionHow to assign roles to users Pin
Xiaoming Qian3-Aug-06 16:12
Xiaoming Qian3-Aug-06 16:12 
AnswerRe: How to assign roles to users Pin
minhpc_bk3-Aug-06 16:29
minhpc_bk3-Aug-06 16:29 
Questionurgently required help Pin
Mairy3-Aug-06 14:32
Mairy3-Aug-06 14:32 
AnswerRe: urgently required help Pin
minhpc_bk3-Aug-06 15:21
minhpc_bk3-Aug-06 15:21 
QuestionProblems after uploading Site with Login Control Pin
cellcon3-Aug-06 12:00
cellcon3-Aug-06 12:00 
AnswerRe: Problems after uploading Site with Login Control Pin
minhpc_bk3-Aug-06 15:29
minhpc_bk3-Aug-06 15:29 
QuestionCheckListBox & List Box Pin
widget13-Aug-06 9:31
widget13-Aug-06 9:31 
QuestionHow to include Text file with ASP.NET Pin
DFrag3-Aug-06 9:05
DFrag3-Aug-06 9:05 
AnswerRe: How to include Text file with ASP.NET Pin
minhpc_bk3-Aug-06 15:37
minhpc_bk3-Aug-06 15:37 
GeneralRe: How to include Text file with ASP.NET Pin
DFrag7-Aug-06 12:39
DFrag7-Aug-06 12:39 
QuestionHow do I handle the space (gap) between panels in a &lt;td>? Pin
Slow Learner3-Aug-06 8:29
Slow Learner3-Aug-06 8:29 
AnswerRe: How do I handle the space (gap) between panels in a &lt;td>? Pin
Ennis Ray Lynch, Jr.3-Aug-06 8:30
Ennis Ray Lynch, Jr.3-Aug-06 8:30 
GeneralRe: How do I handle the space (gap) between panels in a &lt;td>? Pin
Slow Learner3-Aug-06 10:01
Slow Learner3-Aug-06 10:01 
QuestionChanging the Page Title at runtime Pin
RizShiney3-Aug-06 7:45
RizShiney3-Aug-06 7:45 
AnswerRe: Changing the Page Title at runtime Pin
Not Active3-Aug-06 7:57
mentorNot Active3-Aug-06 7:57 
AnswerRe: Changing the Page Title at runtime Pin
ToddHileHoffer3-Aug-06 8:10
ToddHileHoffer3-Aug-06 8:10 
QuestionChanging the Title of an aspx page Pin
RizShiney3-Aug-06 7:40
RizShiney3-Aug-06 7:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.