Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use LoadFile method of RichTextbox ? Pin
Luc Pattyn21-Sep-07 5:14
sitebuilderLuc Pattyn21-Sep-07 5:14 
AnswerRe: How to use LoadFile method of RichTextbox ? Pin
Pete O'Hanlon21-Sep-07 3:50
mvePete O'Hanlon21-Sep-07 3:50 
QuestionProblem in TreeView Pin
stancrm21-Sep-07 2:18
stancrm21-Sep-07 2:18 
AnswerRe: Problem in TreeView Pin
DaveyM6921-Sep-07 2:24
professionalDaveyM6921-Sep-07 2:24 
QuestionDirectoryInfo UNC Path Pin
TheShihan21-Sep-07 2:18
TheShihan21-Sep-07 2:18 
AnswerRe: DirectoryInfo UNC Path Pin
TJoe21-Sep-07 2:57
TJoe21-Sep-07 2:57 
GeneralRe: DirectoryInfo UNC Path Pin
TheShihan21-Sep-07 3:14
TheShihan21-Sep-07 3:14 
GeneralRe: DirectoryInfo UNC Path Pin
TJoe21-Sep-07 3:29
TJoe21-Sep-07 3:29 
Yes, the application should be run as the user you are logged in as and are running Visual Studio as. Does the exeception provide any specific information (maybe an InnerException?)

It's not something you "tell the complier". The compiler generates an executable and that executable is run under the context of a user. So when your executable tries to list the directory, it's using that user's credentials.

You can run the executable as a different user (than the currently logged in user), using the runas.exe command line tool or right click the EXE in Windows explorer and choose run-as. You can also have your code "impersonate[^]" another user.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: DirectoryInfo UNC Path Pin
TheShihan21-Sep-07 3:40
TheShihan21-Sep-07 3:40 
GeneralRe: DirectoryInfo UNC Path Pin
TheShihan21-Sep-07 4:13
TheShihan21-Sep-07 4:13 
QuestionPage refresh..... Pin
pavya_Cool21-Sep-07 1:55
pavya_Cool21-Sep-07 1:55 
AnswerRe: Page refresh..... Pin
Christian Graus21-Sep-07 2:20
protectorChristian Graus21-Sep-07 2:20 
QuestionProblem in passing message betwin client server. Pin
Tarun Dudhatra21-Sep-07 0:49
Tarun Dudhatra21-Sep-07 0:49 
QuestionFill in a word file Pin
samerh21-Sep-07 0:07
samerh21-Sep-07 0:07 
AnswerRe: Fill in a word file Pin
Pete O'Hanlon21-Sep-07 0:29
mvePete O'Hanlon21-Sep-07 0:29 
GeneralRe: Fill in a word file Pin
samerh21-Sep-07 0:51
samerh21-Sep-07 0:51 
QuestionAcessing from method in class. Pin
pekhaleyogesh21-Sep-07 0:05
pekhaleyogesh21-Sep-07 0:05 
AnswerRe: Acessing from method in class. Pin
Pete O'Hanlon21-Sep-07 0:23
mvePete O'Hanlon21-Sep-07 0:23 
GeneralRe: Acessing from method in class. Pin
pekhaleyogesh21-Sep-07 0:29
pekhaleyogesh21-Sep-07 0:29 
GeneralRe: Acessing from method in class. Pin
Christian Graus21-Sep-07 0:31
protectorChristian Graus21-Sep-07 0:31 
GeneralRe: Acessing from method in class. Pin
Pete O'Hanlon21-Sep-07 0:32
mvePete O'Hanlon21-Sep-07 0:32 
Questionuse of list control in static method. Pin
pekhaleyogesh21-Sep-07 0:03
pekhaleyogesh21-Sep-07 0:03 
AnswerRe: use of list control in static method. Pin
Christian Graus21-Sep-07 0:32
protectorChristian Graus21-Sep-07 0:32 
AnswerRe: use of list control in static method. Pin
Anthony Mushrow21-Sep-07 1:54
professionalAnthony Mushrow21-Sep-07 1:54 
QuestionHelp autonumber... Pin
KppsK20-Sep-07 23:28
KppsK20-Sep-07 23:28 

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.