Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Gerry Schmitz6-Dec-17 16:58
mveGerry Schmitz6-Dec-17 16:58 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Naveen Reddy Ankampalli6-Dec-17 17:25
Naveen Reddy Ankampalli6-Dec-17 17:25 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Gerry Schmitz6-Dec-17 17:41
mveGerry Schmitz6-Dec-17 17:41 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Richard MacCutchan6-Dec-17 22:16
mveRichard MacCutchan6-Dec-17 22:16 
QuestionC# Is Active Directory Configured Pin
Kevin Marois6-Dec-17 11:02
professionalKevin Marois6-Dec-17 11:02 
AnswerRe: C# Is Active Directory Configured Pin
Dave Kreskowiak6-Dec-17 12:05
mveDave Kreskowiak6-Dec-17 12:05 
GeneralRe: C# Is Active Directory Configured Pin
Kevin Marois6-Dec-17 12:07
professionalKevin Marois6-Dec-17 12:07 
GeneralRe: C# Is Active Directory Configured Pin
Dave Kreskowiak6-Dec-17 13:12
mveDave Kreskowiak6-Dec-17 13:12 
Well, you can't interrogate a single server without permissions to do so, and you're usually not going to have those.

Like Pete showed, if the machine your code is running on is part of the domain, you can just ask the domain for it's list of available domain controllers within reach of your machine.

But, it's even simpler than that. The fact that your machine is joined to a domain means there's at least one domain controller, and hence, Active Directory exists, or at least existed when the machine was joined to the domain.

If GetCurrentDomain doesn't return anything, well, there's no domain and hence, no Active Directory.

System.ItDidntWorkException: Something didn't work as expected.

C# - How to debug code[^].
Seriously, go read these articles.

Dave Kreskowiak

GeneralRe: C# Is Active Directory Configured Pin
Kevin Marois7-Dec-17 6:50
professionalKevin Marois7-Dec-17 6:50 
AnswerRe: C# Is Active Directory Configured Pin
Pete O'Hanlon6-Dec-17 12:06
mvePete O'Hanlon6-Dec-17 12:06 
QuestionDrag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 6:06
GauravGoyal_56-Dec-17 6:06 
AnswerRe: Drag & Drop how to in Windows Application Pin
OriginalGriff6-Dec-17 6:42
mveOriginalGriff6-Dec-17 6:42 
GeneralRe: Drag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 7:21
GauravGoyal_56-Dec-17 7:21 
GeneralRe: Drag & Drop how to in Windows Application Pin
OriginalGriff6-Dec-17 8:00
mveOriginalGriff6-Dec-17 8:00 
AnswerRe: Drag & Drop how to in Windows Application Pin
Dave Kreskowiak6-Dec-17 6:52
mveDave Kreskowiak6-Dec-17 6:52 
GeneralRe: Drag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 7:20
GauravGoyal_56-Dec-17 7:20 
GeneralRe: Drag & Drop how to in Windows Application Pin
Dave Kreskowiak6-Dec-17 7:22
mveDave Kreskowiak6-Dec-17 7:22 
AnswerRe: Drag & Drop how to in Windows Application Pin
MAIsw6-Dec-17 23:40
MAIsw6-Dec-17 23:40 
QuestionProblem with sending DateTime object to PHP webservice from c# Pin
Snyezana Miletich5-Dec-17 21:34
Snyezana Miletich5-Dec-17 21:34 
AnswerRe: Problem with sending DateTime object to PHP webservice from c# Pin
Jochen Arndt5-Dec-17 21:46
professionalJochen Arndt5-Dec-17 21:46 
GeneralRe: Problem with sending DateTime object to PHP webservice from c# Pin
Snyezana Miletich5-Dec-17 23:12
Snyezana Miletich5-Dec-17 23:12 
GeneralRe: Problem with sending DateTime object to PHP webservice from c# Pin
Jochen Arndt5-Dec-17 23:48
professionalJochen Arndt5-Dec-17 23:48 
QuestionAdding dynamically a custom user control into a dockPanel in xaml file Pin
Hervend3-Dec-17 23:10
Hervend3-Dec-17 23:10 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
Kenneth Haugland4-Dec-17 0:36
mvaKenneth Haugland4-Dec-17 0:36 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
#realJSOP4-Dec-17 3:11
mve#realJSOP4-Dec-17 3:11 

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.