473,382 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

RE: Application Data

For in-house tools, the approach of writing to the program files folder is
fine. Here are a few ways that it can be problematic if the code goes out of
your team, such as to a customer:

1. Vista - Must run with elevated permissions to access program files folder.
2. 64 bit OS - Virtualization pottentially renames the folder, so you better
not assume it is c:\program files.
3. XP - Most organizations don't allow users admin priveledge, and the admin
people will not change the permissions on the program files folder.
4. Since this is a service, you are asking a lot from the IT department if
this is not run under "local service" account. On top of that, asking that
the local service account be given such broad permission, is not good.

I hate to ask, but does this other cavelier developer think that the
checkbox for "allow desktop interaction" is just fine and dandy for everyone
to do?
"Tom" wrote:
I don't know if this is the best group to ask this in, but then again, I
don't know where to ask it either. So please be gentle ...

Anyway, my group has written several .NET Windows services over the past
year. Now typically, these services get installed in the program files
directory, and they almost always have configuration files that they
read/write from.

My argument is that any files that are read from/written to must go into the
application data directory (e.g. - XP: docs & settings\all users\application
data\our company\). Another guy on our team just changes the permissions of
our directory under program files so that everybody can write to that
directory when our product is installed.

I keep telling him this is a bad idea, and that Microsoft made the
application directory specifically for this reason, but he always comes back
with that it's just a directory, and as far as security goes, it's just as
secure as writing to this application data directory, and then I don't
really have a good response to him.

So ...

What is the actual benefit to using the application data directory, and why
should we use it?

Thanks.

Oct 24 '08 #1
1 1505
Tom
Right now, our customers don't really care what we do, it's really just an
in house argument. Thanks for pointing out the issues, but where is the
best place to store these configuration files? Now it sounds like the
application data directory and the programs files directory is not the best
place to go.

Thanks again.

"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:41**********************************@microsof t.com...
For in-house tools, the approach of writing to the program files folder is
fine. Here are a few ways that it can be problematic if the code goes out
of
your team, such as to a customer:

1. Vista - Must run with elevated permissions to access program files
folder.
2. 64 bit OS - Virtualization pottentially renames the folder, so you
better
not assume it is c:\program files.
3. XP - Most organizations don't allow users admin priveledge, and the
admin
people will not change the permissions on the program files folder.
4. Since this is a service, you are asking a lot from the IT department if
this is not run under "local service" account. On top of that, asking
that
the local service account be given such broad permission, is not good.

I hate to ask, but does this other cavelier developer think that the
checkbox for "allow desktop interaction" is just fine and dandy for
everyone
to do?
"Tom" wrote:
>I don't know if this is the best group to ask this in, but then again, I
don't know where to ask it either. So please be gentle ...

Anyway, my group has written several .NET Windows services over the past
year. Now typically, these services get installed in the program files
directory, and they almost always have configuration files that they
read/write from.

My argument is that any files that are read from/written to must go into
the
application data directory (e.g. - XP: docs & settings\all
users\application
data\our company\). Another guy on our team just changes the permissions
of
our directory under program files so that everybody can write to that
directory when our product is installed.

I keep telling him this is a bad idea, and that Microsoft made the
application directory specifically for this reason, but he always comes
back
with that it's just a directory, and as far as security goes, it's just
as
secure as writing to this application data directory, and then I don't
really have a good response to him.

So ...

What is the actual benefit to using the application data directory, and
why
should we use it?

Thanks.

Oct 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
43
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on...
4
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
4
by: John Cosmas | last post by:
I need to execute some threads that load items into my APPLICATION object. I haven't figured out how to do that when I fire off a thread on a page, that takes its time and loads data into the...
17
by: Timothy.Rybak | last post by:
Hello all, This is my first attempt at an application, so kid gloves are appreciated. I need to make a very simple form that only has a few elements. One is TraceCode - a text field that is...
35
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. ...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.