Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Application Data Security in ProgramData folder

microsoft.public.windows.vista.security






Speedup My PC
Reply
  #1 (permalink)  
Old 08-14-2009
Dweezil38
 

Posts: n/a
Application Data Security in ProgramData folder

Hi there

I've been searching high and low to find an answer to my problem, but
no luck.

I've got a Windows application that is using an Access Database to
track user data and an XML file to track where the database is located.
I'm using VS 2008 on Vista Ultimate created using VB. My Deployment
Project is creating a subform under C:\ProgramData and I can get my
files installed there no problem (DefaultLocation =
[CommonFilesFolder]\[ProductName]). I've set the application UAC setting
to run "asInvoker", uiAccess=\"false\". The application appears to
read/write and update the Access Database tables no problem but if I try
to Read or Write to my XML file, in the same folder, I get \"Access
Denied\". I have also set my application security properties to \"Click
once security settings\" and 'Full trusted application\". Still no
go!!?? I'm using a simple ReadXml and Write XML commands to update the
XML file. I am the Administrator on the computer.

The application will be used by any user that logs onto the computer. I
really don't want to change the UAC to \\"requireAdministrator\\\\".
I've seen referrences to \\\\"CoCreateInstanceAsAdmin\\\\" but my
managed code to update the XML file is all throughout the application so
I don't really want to create a separate COM for doing this updating.
Also I'm not really sure how to use the
\\\\"ConvertStringDescriptorToSecurityDescriptor\\ \\" action in my code.

Does anybody have a simple VB solution to this problem? Should I be
storing my Access Database and XML file in C:\USERS\PUBLIC? Sorry, I
have tried this but I can't find a way to get my Deployment Project to
referrence this folder.

Thanks Dweezil


--
Dweezil38
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2009
Dweezil38
 

Posts: n/a
Re: Application Data Security in ProgramData folder

Hi folks,

I found a problem in my code and can now read/write to my XML file. But
read/write from my Access Database is not working now.


--
Dweezil38
Reply With Quote
  #3 (permalink)  
Old 08-14-2009
Dweezil38
 

Posts: n/a
Re: Application Data Security in ProgramData folder

Hi again.

I think I found the problem, AGAIN!!. My bad. If all testing goes well
I believe this is a non-issue.

Thanks


--
Dweezil38
Reply With Quote
  #4 (permalink)  
Old 09-08-2009
clawson
 

Posts: n/a
Re: Application Data Security in ProgramData folder

So what was the problem?

I'm having a similar issue, I'm not sure where I should be installing
the files for my program. I thought that ProgramData is the new all user
directory but when I run my program as a User I get an access denied
error when I try to write to this folder (obviously because the
permissions are set up that why).

So what is the best place to write files when my program is installed
that all users will be able to read/write to?


--
clawson
Reply With Quote
  #5 (permalink)  
Old 05-03-2010
adamrob69
 

Posts: n/a
Re: Application Data Security in ProgramData folder

How did you do it? i have the same problem. My access database is fine,
but i carnt write to text files in the application data directory!

I have tried everything i can think off, and searched high and low!


--
adamrob69
Reply With Quote
  #6 (permalink)  
Old 05-03-2010
FromTheRafters
 

Posts: n/a
Re: Application Data Security in ProgramData folder
Many readers won't see the post that you are referring to, and won't
know what you are talking about. You should either include some quoted
material from the post when replying to a post, or better yet make an
entire new post with all of the relevant information included.

(I hate web-to-usenet gateways ... grumble... grumble)

"adamrob69" <guest@unknown-email.com> wrote in message
news:8c848c5e4a12d02be3405ed61083496a@nntp-gateway.com...
>
> How did you do it? i have the same problem. My access database is
> fine,
> but i carnt write to text files in the application data directory!
>
> I have tried everything i can think off, and searched high and low!
>
>
> --
> adamrob69



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C:\Users\Jean Pierre\Local Settings\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applicatio Jean Pierre Daviau microsoft.public.fr.windows.vista.general 10 03-14-2009 11:47
Access denied to application data folder drumz microsoft.public.windows.vista.general 4 02-17-2009 00:12
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY keepout@yahoo.com.invalid microsoft.public.windows.vista.general 16 09-16-2007 01:50
redundant application data folder Lou microsoft.public.windows.vista.general 0 03-22-2007 16:55
Application Data Folder =?Utf-8?B?SGFnZ2lz?= microsoft.public.windows.vista.networking sharing 2 01-23-2007 01:09




All times are GMT +1. The time now is 11:56.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120