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

This is a discussion on How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation - DOTNET ; 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\MaxApplicationHistory DWORD: ...

+ Reply to Thread
Results 1 to 6 of 6

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

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

    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\MaxApplicationHistory 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!




  2. Default RE: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

    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.


  3. Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

    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@online.microsoft.com> wrote in message
    news:zEuy8EU1FHA.3104@TK2MSFTNGXA01.phx.gbl...
    > 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.
    >




  4. Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

    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.


  5. Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

    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@online.microsoft.com> wrote in message
    news:JgdyVbe1FHA.700@TK2MSFTNGXA01.phx.gbl...
    > 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.
    >




  6. Default Re: How to disable Local Settings\Application Data\ApplicationHistory\ ini file generation

    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 to Thread

Similar Threads

  1. Reading settings from App.config File. (Windows Application)
    By Application Development in forum CSharp
    Replies: 0
    Last Post: 09-08-2007, 07:40 AM
  2. Replies: 1
    Last Post: 08-02-2007, 10:10 AM
  3. How to disable WSDL generation in web.config file
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 09-26-2006, 08:32 PM
  4. Adjusting for local settings in an ANTLR application
    By Application Development in forum Compilers
    Replies: 0
    Last Post: 12-23-2005, 08:55 PM
  5. Replies: 2
    Last Post: 10-14-2005, 02:02 PM