Click here to Skip to main content
15,909,822 members
Home / Discussions / C#
   

C#

 
Generalactive directory Pin
sujithapril17-Jan-05 7:21
sujithapril17-Jan-05 7:21 
GeneralC# app using Crystal Reports Pin
braber17-Jan-05 6:19
braber17-Jan-05 6:19 
GeneralXML-Updating of record Pin
Adnan Siddiqi17-Jan-05 6:14
Adnan Siddiqi17-Jan-05 6:14 
GeneralC# class hierarchy Pin
Peter Andersson17-Jan-05 5:50
Peter Andersson17-Jan-05 5:50 
GeneralRe: C# class hierarchy Pin
Heath Stewart17-Jan-05 6:18
protectorHeath Stewart17-Jan-05 6:18 
GeneralRe: C# class hierarchy Pin
17-Jan-05 11:55
suss17-Jan-05 11:55 
Generalnetwork path in conjunction with file.exists Pin
RB@Emphasys17-Jan-05 5:38
RB@Emphasys17-Jan-05 5:38 
GeneralRe: network path in conjunction with file.exists Pin
Heath Stewart17-Jan-05 6:28
protectorHeath Stewart17-Jan-05 6:28 
Yes File.Exists works on UNC paths and yes you have to grant permissions on that directory to whatever user context is running your code (or impersonate another user who already has permissions).

The ASPNET (the default account for ASP.NET) won't typically work, however, because it's a local user account. You need to either grant read permissions on the parent directory to Everyone (not necessarily List permissions, though) or change your machine.config file or the Web.config file in the application root to use a domain user account and password (be sure that you secure the Web.config file and don't index it if you configure the user in that file.

Depending on what you're doing, you could also impersonate whatever user is making the request by setting the <identity> configuration element data correctly (see the SDK documentation) and using NTLM authentication on the directory with no anonymous login enabled. There is documentation about how to do this in the .NET Framework SDK along with the documentation for the <identity> configuration element. If you're familiar with IIS and configuring ASP.NET this is not a problem.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalinternal interfaces Pin
emission17-Jan-05 2:27
emission17-Jan-05 2:27 
GeneralRe: internal interfaces Pin
leppie17-Jan-05 4:36
leppie17-Jan-05 4:36 
GeneralRe: internal interfaces Pin
emission17-Jan-05 6:15
emission17-Jan-05 6:15 
GeneralRe: internal interfaces Pin
Heath Stewart17-Jan-05 6:41
protectorHeath Stewart17-Jan-05 6:41 
GeneralRe: internal interfaces Pin
emission17-Jan-05 10:02
emission17-Jan-05 10:02 
GeneralRe: internal interfaces Pin
Heath Stewart17-Jan-05 10:52
protectorHeath Stewart17-Jan-05 10:52 
GeneralRe: internal interfaces Pin
emission17-Jan-05 12:30
emission17-Jan-05 12:30 
Generaldebugging diabled Pin
Member 166075017-Jan-05 2:25
Member 166075017-Jan-05 2:25 
GeneralRe: debugging diabled Pin
Heath Stewart17-Jan-05 7:11
protectorHeath Stewart17-Jan-05 7:11 
GeneralCreating ms installer with V. C# Pin
basbous17-Jan-05 2:13
basbous17-Jan-05 2:13 
GeneralRe: Creating ms installer with V. C# Pin
Heath Stewart17-Jan-05 6:46
protectorHeath Stewart17-Jan-05 6:46 
GeneralC# Pin
Anonymous17-Jan-05 2:10
Anonymous17-Jan-05 2:10 
GeneralRe: C# Pin
johnhebert17-Jan-05 4:42
johnhebert17-Jan-05 4:42 
GeneralListing a files in a client directory Pin
Sree7417-Jan-05 1:46
sussSree7417-Jan-05 1:46 
GeneralRe: Listing a files in a client directory Pin
Heath Stewart17-Jan-05 6:52
protectorHeath Stewart17-Jan-05 6:52 
GeneralRe: Listing a files in a client directory Pin
Member 37818918-Jan-05 4:04
Member 37818918-Jan-05 4:04 
GeneralReading local file on the client side Pin
Sreeanth17-Jan-05 1:37
sussSreeanth17-Jan-05 1:37 

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.