Re: Program Files Read Only



Not an answer, but its not a terribly good idea to hard code any data
location, or anything else, when writting an app, create a routine to locate
the data file, consign that to a variable, then use that variable for the
location

"Dweezil38" <guest@xxxxxxxxxxxxxxxxx> wrote in message
news:9e83b17afa4c3a5b4383a02dff067831@xxxxxxxxxxxxxxxxxxx

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)"?


--
Dweezil38


.



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. ...
    (microsoft.public.windows.vista.security)
  • 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)
  • Re: Network
    ... I was planning to load the database on to the server and have ... it is not *recommended* to have multiple users in the same ... The "best practice" is to split the application into a data file (tables ... not recommend that if the data is mission critical and I would certainly ...
    (microsoft.public.access.gettingstarted)
  • Re: Replication for Access
    ... > new unreplicated database. ... data file you started out with becomes the design master. ... replica with the same name in the location where the pre-replicated ... If you are still getting the error, exit Access, open Windows ...
    (microsoft.public.access.replication)