Re: Program Files Read Only



Dweezil38 wrote:
Hi There

I have a serious problem to fix. I've written a WIndows Application
using visual studio 2008 that uses an Access database to hold data. I've
placed the database in the same folder as the executible "C:\Program
Files\MyApp\MyData.mdb". The program installs and work fine under XP and
but when installed and run under Vista, I'm getting file permission
errors. All user installation and running of the application is done as
the ADMINISTATOR, the only user profile created.

My eariler version of the application, written with VS 2005 installs
(DOT NET Framework 2.0) and works fine under Vista.

I can't change the database location, as eariler versions of this same
program have been running and working fine under XP. It would mean
changing the data file location for over 200 customers. It would cause a
great deal of head aches to modify the application to use a different
folder for the database.

SO here's my questions. What permissions do I need to get read/write
access to my data file? What steps can be taken to remove the security
attributes on my data file? Can I change these permissions from within
my application? The application exe file does have its compatibilities
property set to "Run as an administrator". Do I have to run the
application under compatibility mode of "Windows XP (Service pack 2)"?




Data should never be saved in the C:\Programs Files area. That's very poor practice. I'd suggest you fix the application. As it is, you cannot even honestly claim that the application is WinXP-compatible, much less Vista-compatible.


--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has killed a great many philosophers.
~ Denis Diderot
.



Relevant Pages

  • Re: Program Files Read Only
    ... using visual studio 2008 that uses an Access database to hold data. ... My eariler version of the application, written with VS 2005 installs ... changing the data file location for over 200 customers. ... What permissions do I need to get read/write ...
    (microsoft.public.windows.vista.security)
  • Re: error when accessing asp-site whilst uploading access database
    ... As Aaron said you can't be replacing your data file while someone is ... > i have a site running in asp with an access database that is being queried. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Issues with CHANGE_TRACKING AUTO after initial index population
    ... There's a problem with 64 bit SQL 2005 server. ... Director of Text Mining and Database Strategy ... started the FT initial index population when our site activity is low. ... High activity on the data file. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Access database stability problems
    ... The backend data files are even located on the same network drive on the server. ... I found out today that people running that database are NOT having crashes like we are. ... What I wanted to strongly recommend is moving your database to an SQL server of some kind, SQL Server 2005 Express if nothing else. ... You haven't said whether 'crashing the database' is just a matter of Access losing its network connection and screaming blue murder, or whether it's actually breaking the backend data file. ...
    (microsoft.public.windows.server.sbs)
  • Concurrency Violation in DataSet Update ADO.NET
    ... Now I am developing Cheque Writing ... 'UPDATE DATABASE ... "TBKKTC") ... I use password to protect my Access database from ...
    (microsoft.public.dotnet.general)

Loading