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

C#

 
GeneralRe: C# and MC++ Pin
Heath Stewart2-Jun-04 6:31
protectorHeath Stewart2-Jun-04 6:31 
GeneralRe: C# and MC++ Pin
Orhun Birsoy2-Jun-04 7:13
Orhun Birsoy2-Jun-04 7:13 
GeneralRe: C# and MC++ Pin
Heath Stewart2-Jun-04 9:01
protectorHeath Stewart2-Jun-04 9:01 
QuestionSystemPen ? Pin
ongo2-Jun-04 4:13
ongo2-Jun-04 4:13 
AnswerRe: SystemPen ? Pin
Mazdak2-Jun-04 4:35
Mazdak2-Jun-04 4:35 
GeneralRetrieving Username Pin
briby2-Jun-04 3:23
briby2-Jun-04 3:23 
GeneralRe: Retrieving Username Pin
Heath Stewart2-Jun-04 3:38
protectorHeath Stewart2-Jun-04 3:38 
GeneralRe: Retrieving Username Pin
Atilla Ozgur2-Jun-04 3:57
Atilla Ozgur2-Jun-04 3:57 
In you case I think windows has Authenticated your user and it is using NT AUTHORITY\SYSTEM to run your code.You have to use impersonation so that when you use that code line you will get correct user.
Second solution could be to implement IPrincipal and explicitly set user information.

Education is no substitute for intelligence. That elusive quality is defined only in part by puzzle-solving ability. It is in the creation of new puzzles reflecting what your senses report that you round out the definition. Frank Herbert
GeneralRe: Retrieving Username Pin
briby3-Jun-04 0:02
briby3-Jun-04 0:02 
Generalhiding emails Pin
robmays2-Jun-04 2:40
robmays2-Jun-04 2:40 
GeneralRe: hiding emails Pin
Hesham Amin2-Jun-04 4:24
Hesham Amin2-Jun-04 4:24 
GeneralRe: hiding emails Pin
robmays2-Jun-04 4:29
robmays2-Jun-04 4:29 
GeneralOnClosing Pin
thomasa2-Jun-04 2:22
thomasa2-Jun-04 2:22 
GeneralRe: OnClosing Pin
LongRange.Shooter2-Jun-04 2:45
LongRange.Shooter2-Jun-04 2:45 
GeneralRe: OnClosing Pin
JackMartinz2-Jun-04 6:50
JackMartinz2-Jun-04 6:50 
GeneralRe: OnClosing Pin
LongRange.Shooter3-Jun-04 2:21
LongRange.Shooter3-Jun-04 2:21 
GeneralRe: OnClosing Pin
Tom Larsen2-Jun-04 4:37
Tom Larsen2-Jun-04 4:37 
GeneralRe: OnClosing Pin
Heath Stewart2-Jun-04 4:48
protectorHeath Stewart2-Jun-04 4:48 
GeneralShowing a controls focus rectangle Pin
swb1082-Jun-04 0:29
swb1082-Jun-04 0:29 
GeneralRe: Showing a controls focus rectangle Pin
LongRange.Shooter3-Jun-04 2:31
LongRange.Shooter3-Jun-04 2:31 
GeneralRe: Showing a controls focus rectangle Pin
swb1083-Jun-04 14:38
swb1083-Jun-04 14:38 
GeneralRe: Showing a controls focus rectangle Pin
LongRange.Shooter4-Jun-04 3:20
LongRange.Shooter4-Jun-04 3:20 
GeneralRe: Showing a controls focus rectangle Pin
swb1084-Jun-04 17:34
swb1084-Jun-04 17:34 
GeneralQuickBooks integration Pin
vinny45451-Jun-04 23:30
vinny45451-Jun-04 23:30 
GeneralAdding TableNames in a HashTable in Writing order Pin
Naga the bug fixer1-Jun-04 23:05
Naga the bug fixer1-Jun-04 23:05 

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.