Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

Vista Common App Folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rpotash - 29 Feb 2008 16:13 GMT
My application creates an access database. I am testing with multiple users.
I log-in to Vista as the Admin. The application starts and places the data
file in C:\ProgramData\MyAppName folder as desired. I then log-out and log-in
as a Standard User and start the Application. It appears Vista then creates a
copy of the file in the C:\ProgramData\MyAppName compatibility folder. So the
problem is, the Admin and the Standard User aren't looking at the same file.
From the documentation I assumed that files in the CSIDL_COMMON_APPDATA
folder were shared by all users of my application, however this doesn't seem
to be happening. Any suggestions on why this is happening and how to resolve
it?
Thorsten Doerfler - 29 Feb 2008 18:46 GMT
rpotash schrieb:
> My application creates an access database. I am testing with multiple users.
> I log-in to Vista as the Admin. The application starts and places the data
[quoted text clipped - 5 lines]
> folder were shared by all users of my application, however this doesn't seem
> to be happening.

This is happening. Every user can create and read files in
COMMON_APPDATA, but only the user who created the file or the admin
can modify the files in there.

> Any suggestions on why this is happening

This is simple: Because the access rights of the folder prohibits the
user making changes. Vista will be so /smart/, to redirect writes to a
virtual storage under the users profile. This isn't helpful, but
prevents the user from such annoying information like "Access denied".

> and how to resolve it?

Adjust the access rights for your folder under COMMON_APPDATA.

Thorsten Doerfler
Signature

Microsoft MVP Visual Basic

vb-hellfire visual basic faq  | vb-hellfire - einfach anders
http://vb-faq.de/             | http://www.vb-hellfire.de/

rpotash - 29 Feb 2008 20:22 GMT
I was able to to do this with Vista/Explorer and it worked. Is there a simple
way to set the User Permissions to All for the folder under VB6?

> rpotash schrieb:
> > My application creates an access database. I am testing with multiple users.
[quoted text clipped - 23 lines]
>
> Thorsten Doerfler
Thorsten Doerfler - 02 Mar 2008 15:55 GMT
rpotash schrieb:
> I was able to to do this with Vista/Explorer and it worked. Is there a simple
> way to set the User Permissions to All for the folder under VB6?

Everything else than simple:
HOWTO: Set Security on a NTFS Folder Programmatically
http://groups.google.de/group/microsoft.public.vb.winapi.networks/browse_thread/
thread/48da850d1644be5a/2dd1de4b29e2faf7#2dd1de4b29e2faf7


For further questions on VB6 you better select the appropriate group
which begins with microsoft.public.vb.*. This groups topic is VB.NET.

Thorsten Doerfler
Signature

Microsoft MVP Visual Basic

vb-hellfire visual basic faq  | vb-hellfire - einfach anders
http://vb-faq.de/             | http://www.vb-hellfire.de/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.