Results 1 to 3 of 3

Thread: [2005] Avoiding possible user.config file collisions

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    56

    [2005] Avoiding possible user.config file collisions

    I'm developing a Visual Basic .Net application. Numerous versions of the program have user settings that put user.config files under paths of the following form.

    C:\Documents and Settings\{user name}\Local Settings\Application Data\{company name}\?????\1.0.0.0

    The "user name" corresponds to the sub-folder for my user account. The "company name" is the name of my company. The settings information has evolved over time. Within the "company name" sub-folder, there are numerous folders whose names begin with name of my executable

    {my program}.exe

    (There are a few starting with {my program}.vshost.exe.)
    Following the executable file name prefix (of these sub-folder names) is a suffix that begins with "_Url_" and continues with a indecipherable sequence of letters and numbers.

    Twice, I have had some version of my program crash inelegantly because it didn't recognize the input in the user.config it found. I believe one version of my program is reading the user.config file of an earlier version of my program.

    So, how does Visual Basic .Net avoid possible user.config file collisions? Clearly, you don't want different versions of the same program sharing a user.config; their required contents may differ.
    Last edited by esharris; Sep 24th, 2007 at 11:55 AM. Reason: added title

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005]

    Quote Originally Posted by esharris
    Clearly, you don't want different versions of the same program sharing a user.config;
    Actually, you can end that sentence like this
    Quote Originally Posted by esharris
    Clearly, you don't want different versions of the same program
    All previous versions of this program need to be removed so that everyone is using the same version. If there are config files floating around all over everywhere, they need to be cleaned up.

    Also, your thread title should reflect not only the version you are using, but a brief description of the issue.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    56

    Re: [2005] Avoiding possible user.config file collisions

    This doesn't answer my question.

    BTW, you're taking my quote out of context. I'm not saying ...

    "Clearly, you don't want different versions of the same program"

    I disagree with this statement. I have VB6 and VB 2005 .Net express on the same machine. Sometimes, I want to load a colleague's VB6 program into a VB environment without converting it to VB .Net.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width