Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: change bitmap resolution Pin
Werdna10-Jul-04 11:19
Werdna10-Jul-04 11:19 
GeneralCOM Object Pin
FlamTaps9-Jul-04 7:25
FlamTaps9-Jul-04 7:25 
GeneralRe: COM Object Pin
MilesAhead9-Jul-04 8:17
MilesAhead9-Jul-04 8:17 
GeneralRe: COM Object Pin
FlamTaps12-Jul-04 8:55
FlamTaps12-Jul-04 8:55 
GeneralRe: COM Object Pin
Anonymous12-Jul-04 9:37
Anonymous12-Jul-04 9:37 
GeneralRe: COM Object Pin
FlamTaps12-Jul-04 10:29
FlamTaps12-Jul-04 10:29 
GeneralRe: COM Object Pin
MilesAhead14-Jul-04 14:07
MilesAhead14-Jul-04 14:07 
GeneralImpersonation in C# question, please help! Pin
garfieldlee999-Jul-04 7:00
garfieldlee999-Jul-04 7:00 
Hi,

I have a question about impersonation. I'm writing C# in asp.net for a web app. to be deployed on a Windows 2000 Server. I'm writing code to access a file that's located on a network folder. So inside my code, I need to perform "Impersonation" in order to have the client browser access the file. So looking at msdn, they give me the code for Impersonation by means of

LogonUser - > Duplicate Token -> Impersonate

But the problem is that there is a warning in the code snippet comments about executing the code in the windows 2000 environment. It says the code can only be run in Windows XP as there is a security risk if executed in Windows 2000.

MSDN Code Snippet:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp

Can someone please tell me how i can access this file located on the network in Windows 2000 (if i shouldn't be using impersonation)?

Thanks!

Sharon
GeneralRe: Impersonation in C# question, please help! Pin
Heath Stewart9-Jul-04 9:04
protectorHeath Stewart9-Jul-04 9:04 
GeneralProperty Grid Pin
machocr9-Jul-04 6:53
machocr9-Jul-04 6:53 
GeneralRe: Property Grid Pin
Heath Stewart9-Jul-04 9:07
protectorHeath Stewart9-Jul-04 9:07 
GeneralRe: Property Grid Pin
Jay Shankar11-Jul-04 22:26
Jay Shankar11-Jul-04 22:26 
General.NET 2.0's WebBrowser control Pin
Judah Gabriel Himango9-Jul-04 6:32
sponsorJudah Gabriel Himango9-Jul-04 6:32 
GeneralRe: .NET 2.0's WebBrowser control Pin
Heath Stewart9-Jul-04 9:11
protectorHeath Stewart9-Jul-04 9:11 
Generalimplement a own shell-view Pin
Shir Khan9-Jul-04 5:23
Shir Khan9-Jul-04 5:23 
GeneralRe: implement a own shell-view Pin
Jesse Squire9-Jul-04 5:36
Jesse Squire9-Jul-04 5:36 
GeneralRe: implement a own shell-view Pin
Nick Parker9-Jul-04 6:00
protectorNick Parker9-Jul-04 6:00 
GeneralData layer DLL .Config Pin
Andy H9-Jul-04 4:58
Andy H9-Jul-04 4:58 
GeneralRe: Data layer DLL .Config Pin
Heath Stewart9-Jul-04 9:16
protectorHeath Stewart9-Jul-04 9:16 
GeneralFind on Page with IE browser control Pin
weekly_s9-Jul-04 4:47
weekly_s9-Jul-04 4:47 
GeneralRe: Find on Page with IE browser control Pin
Heath Stewart9-Jul-04 6:18
protectorHeath Stewart9-Jul-04 6:18 
GeneralRe: Find on Page with IE browser control Pin
weekly_s9-Jul-04 7:55
weekly_s9-Jul-04 7:55 
GeneralRe: Find on Page with IE browser control Pin
Heath Stewart9-Jul-04 8:54
protectorHeath Stewart9-Jul-04 8:54 
GeneralLimiting the bandwidth Pin
pi_trek9-Jul-04 1:09
pi_trek9-Jul-04 1:09 
GeneralRe: Limiting the bandwidth Pin
Dave Kreskowiak9-Jul-04 6:07
mveDave Kreskowiak9-Jul-04 6:07 

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.