Click here to Skip to main content
15,912,977 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionAsynchronous Callbacks Pin
Tim McCurdy3-May-06 7:29
Tim McCurdy3-May-06 7:29 
AnswerRe: Asynchronous Callbacks Pin
Josh Smith4-May-06 8:21
Josh Smith4-May-06 8:21 
QuestionKernel32 error in opening oledb connection Pin
projectcode13-May-06 6:29
projectcode13-May-06 6:29 
AnswerRe: Kernel32 error in opening oledb connection Pin
mr_123453-May-06 6:37
mr_123453-May-06 6:37 
GeneralRe: Kernel32 error in opening oledb connection Pin
projectcode13-May-06 7:05
projectcode13-May-06 7:05 
QuestionRe: Kernel32 error in opening oledb connection Pin
mr_123453-May-06 9:23
mr_123453-May-06 9:23 
AnswerRe: Kernel32 error in opening oledb connection Pin
projectcode13-May-06 10:05
projectcode13-May-06 10:05 
Question.Net 2.0 Security Pin
mlauahi2-May-06 5:15
mlauahi2-May-06 5:15 
I tried the VB.NET forum, but maybe that was the wrong forum.

What I need to do is check what rights that the current authenticated user has
on a given file or directory. If the code needs to create a directory(sub-folder)
does the current user have Create rights. If the current user needs to write in a directory
do they have the Write permissions.

I have tried several renditions of the following which is from the Microsoft
Help section. This code seems add the access rule even when I don't have the rights
do this

TRY

Dim dInfo As New DirectoryInfo(FileName)
Dim dSecurity As DirectorySecurity = dInfo.GetAccessControl()
dSecurity.AddAccessRule(New FileSystemAccessRule(Account, Rights, ControlType))
dInfo.SetAccessControl(dSecurity)

CATCH

END TRY

AnswerRe: .Net 2.0 Security Pin
DotNetDominator3-May-06 5:29
DotNetDominator3-May-06 5:29 
GeneralRe: .Net 2.0 Security Pin
mlauahi4-May-06 10:39
mlauahi4-May-06 10:39 
GeneralRe: .Net 2.0 Security Pin
DotNetDominator4-May-06 20:30
DotNetDominator4-May-06 20:30 
QuestionSQL Reporting Services Pin
ckruger2-May-06 0:08
ckruger2-May-06 0:08 
AnswerRe: SQL Reporting Services Pin
JimRoss2-May-06 11:31
JimRoss2-May-06 11:31 
QuestionFramework 1.0 and 2.0 Pin
charbelasmar1-May-06 21:45
charbelasmar1-May-06 21:45 
AnswerRe: Framework 1.0 and 2.0 Pin
CWIZO1-May-06 23:48
CWIZO1-May-06 23:48 
QuestionCan I create publisher policy for DLL assemblies? Pin
Steve M.1-May-06 8:05
Steve M.1-May-06 8:05 
Question1.1 & 2.0 in tandem Pin
duncanthescott1-May-06 5:35
duncanthescott1-May-06 5:35 
AnswerRe: 1.1 & 2.0 in tandem Pin
Josh Smith1-May-06 6:11
Josh Smith1-May-06 6:11 
AnswerRe: 1.1 & 2.0 in tandem Pin
raghuvarma1-May-06 23:52
raghuvarma1-May-06 23:52 
Questionconverting from .net 2.0 to .net 1.1 Pin
K.A.L30-Apr-06 10:51
K.A.L30-Apr-06 10:51 
AnswerRe: converting from .net 2.0 to .net 1.1 Pin
Dave Kreskowiak30-Apr-06 11:21
mveDave Kreskowiak30-Apr-06 11:21 
AnswerRe: converting from .net 2.0 to .net 1.1 Pin
Graham Nimbley30-Apr-06 11:56
Graham Nimbley30-Apr-06 11:56 
GeneralRe: converting from .net 2.0 to .net 1.1 Pin
K.A.L30-Apr-06 14:06
K.A.L30-Apr-06 14:06 
GeneralRe: converting from .net 2.0 to .net 1.1 Pin
Graham Nimbley30-Apr-06 14:16
Graham Nimbley30-Apr-06 14:16 
GeneralRe: converting from .net 2.0 to .net 1.1 Pin
K.A.L1-May-06 1:06
K.A.L1-May-06 1:06 

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.