473,569 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\applicati on
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 1516
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.mi crosoft.comwrot e in
message news:41******** *************** ***********@mic rosoft.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\applicat ion
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
3280
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 from the "cache" hardly takes any time A basic pattern used to get the data from disk, or from cache is this data = getDataFromCache("mydata" if...
43
2798
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 system: I'm not going to divulge the exact aims of the application but the purpose of it is to allow multiple client applications to retrieve data...
4
3039
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 to save it. I have tried creating the object that I place into the DoDragDrop() by inheriting the COM interfaces IDropSource and IDataObject...
9
23062
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 to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be...
6
8565
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 fine All SQL Servers I am referring to share a small (10 computers or so) LAN with a 100MB Switch. No other computers on the LAN exhibit this...
9
2761
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 wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I...
4
1242
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 APPLICATION level object which will be used later. Here is an example code I've used to fire it off. Dim pclsUserServices As clsUserServices = New...
17
3527
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 populated when a user scans a label. The other is ScanDate - a date/time field that should equal the date/time of the scan (e.g. 7/31/2006 5:00:00...
35
2170
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. I am wondering if any of you have advice on supporting an application. Since it has never had any outside exposure, what I don't want is to make a...
4
4511
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 child apps of an IIS application and can be used by multiple users during the application life cycle and for multiple page loads for the same or...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.