Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
AnswerRe: get and update control values from another thread Pin
agha_ali2226-Feb-12 17:48
agha_ali2226-Feb-12 17:48 
AnswerRe: get and update control values from another thread Pin
Dave Kreskowiak26-Feb-12 18:06
mveDave Kreskowiak26-Feb-12 18:06 
AnswerRe: get and update control values from another thread Pin
Shameel26-Feb-12 23:33
professionalShameel26-Feb-12 23:33 
QuestionHelp with impersonation please Pin
CCodeNewbie26-Feb-12 5:42
CCodeNewbie26-Feb-12 5:42 
QuestionRe: Help with impersonation please Pin
Richard MacCutchan26-Feb-12 6:05
mveRichard MacCutchan26-Feb-12 6:05 
AnswerRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 6:46
CCodeNewbie26-Feb-12 6:46 
GeneralRe: Help with impersonation please Pin
Richard MacCutchan26-Feb-12 6:54
mveRichard MacCutchan26-Feb-12 6:54 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 7:41
CCodeNewbie26-Feb-12 7:41 
Hi Richard,

The output fails after the first writeline with the pop-up box containing the list of errors in my previous post.

I have put the code into my service but now I am getting an error (catch exception sends the error to my eventlog)

"System.Security.SecurityException: Incorrect function.

at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
at Smith.Smith.OnTimedEvent(Object source, ElapsedEventArgs e)
The Zone of the assembly that failed was:
MyComputer"

I think the string from "string LOU = (queryObj["UserName"].ToString())" may not be the correct UPN although I am getting domain\username as the output.

Doing a bit of research now...
AnswerRe: Help with impersonation please Pin
Luc Pattyn26-Feb-12 7:39
sitebuilderLuc Pattyn26-Feb-12 7:39 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 10:10
CCodeNewbie26-Feb-12 10:10 
AnswerRe: Help with impersonation please Pin
Luc Pattyn26-Feb-12 6:14
sitebuilderLuc Pattyn26-Feb-12 6:14 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 6:53
CCodeNewbie26-Feb-12 6:53 
QuestionConverting audio file into a binary display Pin
kfir.alf26-Feb-12 3:20
kfir.alf26-Feb-12 3:20 
AnswerRe: Converting audio file into a binary display Pin
OriginalGriff26-Feb-12 4:12
mveOriginalGriff26-Feb-12 4:12 
GeneralRe: Converting audio file into a binary display Pin
kfir.alf26-Feb-12 4:56
kfir.alf26-Feb-12 4:56 
GeneralRe: Converting audio file into a binary display Pin
Eddy Vluggen26-Feb-12 11:11
professionalEddy Vluggen26-Feb-12 11:11 
GeneralRe: Converting audio file into a binary display Pin
V.26-Feb-12 21:14
professionalV.26-Feb-12 21:14 
QuestionRed Five Labs + C# Pin
jojoba201125-Feb-12 22:46
jojoba201125-Feb-12 22:46 
AnswerRe: Red Five Labs + C# Pin
Dan Mos26-Feb-12 3:48
Dan Mos26-Feb-12 3:48 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 4:01
jojoba201126-Feb-12 4:01 
AnswerRe: Red Five Labs + C# Pin
OriginalGriff26-Feb-12 4:15
mveOriginalGriff26-Feb-12 4:15 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 4:23
jojoba201126-Feb-12 4:23 
AnswerRe: Red Five Labs + C# Pin
Dan Mos26-Feb-12 9:00
Dan Mos26-Feb-12 9:00 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 23:18
jojoba201126-Feb-12 23:18 
AnswerRe: Red Five Labs + C# Pin
Pete O'Hanlon27-Feb-12 0:08
mvePete O'Hanlon27-Feb-12 0:08 

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.