Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: win Forms Pin
Stefan Troschuetz15-Mar-07 11:51
Stefan Troschuetz15-Mar-07 11:51 
AnswerRe: win Forms Pin
Keshav V. Kamat15-Mar-07 20:00
Keshav V. Kamat15-Mar-07 20:00 
AnswerRe: win Forms [modified] Pin
marwan_siala16-Mar-07 4:00
marwan_siala16-Mar-07 4:00 
QuestionDynamic interop question Pin
Member 9615-Mar-07 10:45
Member 9615-Mar-07 10:45 
Questionwhen doing an impersonation class, error? Pin
cpltek15-Mar-07 10:37
cpltek15-Mar-07 10:37 
AnswerRe: when doing an impersonation class, error? Pin
Dave Kreskowiak15-Mar-07 13:16
mveDave Kreskowiak15-Mar-07 13:16 
GeneralRe: when doing an impersonation class, error? [modified] Pin
cpltek16-Mar-07 3:43
cpltek16-Mar-07 3:43 
GeneralRe: when doing an impersonation class, error? Pin
Dave Kreskowiak16-Mar-07 12:48
mveDave Kreskowiak16-Mar-07 12:48 
You're missing the domain specifier. It's not optional. If the Administrator account is on the local machine, you either have to give this parameter the machine name or you can pass a single period, ".", as the domain. You cannot leave it as String.Empty as your code does. Doing that is not the same as passing NULL to the function.


Next time, you might also want to say that you got the code from "such-and-such" article here on CodeProject. Impersonator is not part of the .NET Framework and surprised me when I saw your code.


Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: when doing an impersonation class, error? Pin
cpltek16-Mar-07 14:11
cpltek16-Mar-07 14:11 
Questionwindows installer Pin
arkiboys15-Mar-07 9:42
arkiboys15-Mar-07 9:42 
AnswerRe: windows installer Pin
MoustafaS15-Mar-07 11:44
MoustafaS15-Mar-07 11:44 
QuestionDefaultValueAtribute Pin
alexeychik200115-Mar-07 8:39
alexeychik200115-Mar-07 8:39 
AnswerRe: DefaultValueAtribute Pin
mav.northwind15-Mar-07 9:28
mav.northwind15-Mar-07 9:28 
GeneralRe: DefaultValueAtribute Pin
alexeychik200115-Mar-07 9:47
alexeychik200115-Mar-07 9:47 
GeneralRe: DefaultValueAtribute Pin
mav.northwind15-Mar-07 9:54
mav.northwind15-Mar-07 9:54 
GeneralRe: DefaultValueAtribute Pin
alexeychik200115-Mar-07 10:03
alexeychik200115-Mar-07 10:03 
GeneralRe: DefaultValueAtribute Pin
Sean Michael Murphy15-Mar-07 10:31
Sean Michael Murphy15-Mar-07 10:31 
GeneralRe: DefaultValueAtribute Pin
alexeychik200115-Mar-07 10:46
alexeychik200115-Mar-07 10:46 
GeneralRe: DefaultValueAtribute Pin
Sean Michael Murphy15-Mar-07 11:22
Sean Michael Murphy15-Mar-07 11:22 
Questionfilesystem listview Pin
alpdoruk15-Mar-07 8:24
alpdoruk15-Mar-07 8:24 
AnswerRe: filesystem listview Pin
Ed.Poore19-Mar-07 13:10
Ed.Poore19-Mar-07 13:10 
QuestionComboBox & DataBindings Problem Pin
Urfinek15-Mar-07 8:15
Urfinek15-Mar-07 8:15 
AnswerRe: ComboBox & DataBindings Problem Pin
yarns15-Mar-07 19:04
yarns15-Mar-07 19:04 
Questionmy problem Pin
groundzero11115-Mar-07 7:53
groundzero11115-Mar-07 7:53 
AnswerRe: my problem Pin
Dave Kreskowiak15-Mar-07 13:19
mveDave Kreskowiak15-Mar-07 13:19 

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.