HighTechTalks DotNet Forums  

How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Leon Finker
 
Posts: n/a

Default How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-19-2005 , 09:14 PM






Hi,

We have a requirement to disable Local Settings\Application
Data\ApplicationHistory\ ini file generation for our app only or globally on
some customer machines. I found out that i can disable it globally by
setting the following registry value:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\MaxAp plicationHistory DWORD: 0

This still creates *.ini.inuse file that can be left behind when executable
doesn't exit cleanly.

1. Is there an environment variable for MaxApplicationHistory as opposed to
registry value?
2. In Rotor I see IsHosted() check before .ini.inuse file is created. When
is this condition true? I'm hosting .NET through unmanaged COM API. Is this
not IsHosted() condition?
3. What else can be done to control *.ini.* behavior?

Thanks a lot for any help!




Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-20-2005 , 02:40 AM






Hi Leon,

Thanks for your post.

I am not sure why you want to disable these files from generating. Based on
my knowlege, these files are all internal used, which have no public
documents to describe them. So I want to listen to your concern on the
issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #3  
Old   
Leon Finker
 
Posts: n/a

Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-20-2005 , 07:41 AM



I'm asked to look into a way to disable them because customers are
complaining that our application "registers" itself on their system even
though they are not targeted for the app's functionality. The mere startup
of .net executable generates those files and they of course see many entries
for our application in "Fix your application" .NET 1.1 wizard. This is all
moot, but some customers are paranoid on security. I heard in Whidbey
application history is gone?

Thanks for getting back!

""Jeffrey Tan[MSFT]"" <v-jetan (AT) online (DOT) microsoft.com> wrote

Quote:
Hi Leon,

Thanks for your post.

I am not sure why you want to disable these files from generating. Based
on
my knowlege, these files are all internal used, which have no public
documents to describe them. So I want to listen to your concern on the
issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.




Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-20-2005 , 10:26 PM



Hi Leon,

Thanks for your feedback.

Sorry, but on my system, after doing some search, I can not find any
directory named ApplicationHistory, so can you show me some information
about how this directory and *.ini files are generated on your application?
Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #5  
Old   
Leon Finker
 
Posts: n/a

Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-20-2005 , 10:44 PM



Hi Jeffrey,

It should be under:

%userprofile%\Local Settings\Application Data\ApplicationHistory

There should be bunch of .ini files there. I had about 7,000+ of them on
development machine. Separate .ini is created even for AppDomains, and each
time I build and run a .NET project from visual studio (I guess if it has
different assembly version).

http://groups.google.com/group/micro...ff14fc63230e6b
http://groups.google.com/group/micro...65d22680e17d71

It seems like useless operation in 99% of typical application scenario.
Setting MaxApplicationHistory to 0 in registry prevents the .ini generation,
except for .ini.inuse 0 byte files. It would be nice if there was an
environment variable also for this instead of global setting. Maybe you're
using .NET 2.0? Some of the posts seem to indicate that it doesn't use
ApplicationHistory anymore.

Thanks!

""Jeffrey Tan[MSFT]"" <v-jetan (AT) online (DOT) microsoft.com> wrote

Quote:
Hi Leon,

Thanks for your feedback.

Sorry, but on my system, after doing some search, I can not find any
directory named ApplicationHistory, so can you show me some information
about how this directory and *.ini files are generated on your
application?
Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.




Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - 10-21-2005 , 03:59 AM



Hi Leon,

Thanks for your feedback.

Oh, I am not sure why my file search missed ApplicationHistory directory.
Yes, these ini files are used to restore the application state, and there
is no public documented way to disable these files from generating. So I
can not provide some useful information to you.

However, in Whidbey2.0 Release Candidate version, I found that .Net
applications will not generate these .ini files or .ini.inuse files. So it
seems that .Net 2.0 have changed the design for this. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.