Click here to Skip to main content
15,883,705 members
Home / Discussions / C#
   

C#

 
Questionproblem with inserting data to access db Pin
prasadbuddhika8-Jul-09 18:09
prasadbuddhika8-Jul-09 18:09 
AnswerRe: problem with inserting data to access db Pin
Md. Marufuzzaman8-Jul-09 18:35
professionalMd. Marufuzzaman8-Jul-09 18:35 
GeneralRe: problem with inserting data to access db Pin
prasadbuddhika8-Jul-09 18:43
prasadbuddhika8-Jul-09 18:43 
GeneralRe: problem with inserting data to access db Pin
PIEBALDconsult8-Jul-09 20:07
mvePIEBALDconsult8-Jul-09 20:07 
GeneralRe: problem with inserting data to access db Pin
MumbleB8-Jul-09 23:09
MumbleB8-Jul-09 23:09 
AnswerRe: problem with inserting data to access db Pin
dan!sh 8-Jul-09 18:48
professional dan!sh 8-Jul-09 18:48 
AnswerRe: problem with inserting data to access db Pin
Dino Mulahusic8-Jul-09 20:50
professionalDino Mulahusic8-Jul-09 20:50 
Questionchange directory access control for common application data folder failed. Pin
CooperWu8-Jul-09 17:46
CooperWu8-Jul-09 17:46 
Here is my code, and i tried same code for file access control, it works well. but doesn't work for common application data on Vista.

<code>

private static void GrantEveryoneFullControlRight(string directory)
        {
            try
            {
                if (!Directory.Exists(directory))
                    Directory.CreateDirectory(directory);

                DirectoryInfo dirInfo = new DirectoryInfo(directory);
                DirectorySecurity ds = dirInfo.GetAccessControl(AccessControlSections.Access);

                FileSystemAccessRule rule = new FileSystemAccessRule(
                    "Users", FileSystemRights.FullControl, AccessControlType.Allow);

                ds.AddAccessRule(rule);
                dirInfo.SetAccessControl(ds);


            }
            catch (Exception ex)
            {
                // Logger.WriteLog(LogType.Error, ex.ToString());
                Console.WriteLine(ex.ToString());
            }
        }
</code>


Glad to discuss with you and best wishes.

AnswerRe: change directory access control for common application data folder failed. Pin
CooperWu10-Jul-09 0:03
CooperWu10-Jul-09 0:03 
GeneralRe: change directory access control for common application data folder failed. Pin
brian59821-Jul-09 9:52
brian59821-Jul-09 9:52 
GeneralRe: change directory access control for common application data folder failed. Pin
CooperWu22-Jul-09 15:23
CooperWu22-Jul-09 15:23 
GeneralRe: change directory access control for common application data folder failed. Pin
brian59823-Jul-09 6:22
brian59823-Jul-09 6:22 
GeneralRe: change directory access control for common application data folder failed. Pin
CooperWu23-Jul-09 15:56
CooperWu23-Jul-09 15:56 
QuestionC# and Large Images Pin
awaldro8-Jul-09 17:31
awaldro8-Jul-09 17:31 
AnswerRe: C# and Large Images Pin
Luc Pattyn8-Jul-09 22:38
sitebuilderLuc Pattyn8-Jul-09 22:38 
GeneralRe: C# and Large Images Pin
awaldro9-Jul-09 4:08
awaldro9-Jul-09 4:08 
GeneralRe: C# and Large Images Pin
Alan Balkany9-Jul-09 4:46
Alan Balkany9-Jul-09 4:46 
GeneralRe: C# and Large Images Pin
awaldro9-Jul-09 5:00
awaldro9-Jul-09 5:00 
GeneralRe: C# and Large Images Pin
Huxley Stronghead10-Jul-09 4:00
Huxley Stronghead10-Jul-09 4:00 
GeneralRe: C# and Large Images Pin
awaldro10-Jul-09 4:28
awaldro10-Jul-09 4:28 
GeneralRe: C# and Large Images Pin
Huxley Stronghead10-Jul-09 8:42
Huxley Stronghead10-Jul-09 8:42 
GeneralRe: C# and Large Images Pin
awaldro10-Jul-09 9:21
awaldro10-Jul-09 9:21 
GeneralRe: C# and Large Images Pin
Huxley Stronghead10-Jul-09 11:25
Huxley Stronghead10-Jul-09 11:25 
GeneralRe: C# and Large Images Pin
awaldro13-Jul-09 4:08
awaldro13-Jul-09 4:08 
GeneralRe: C# and Large Images Pin
Huxley Stronghead13-Jul-09 7:11
Huxley Stronghead13-Jul-09 7:11 

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.