configuration file is missing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Khor Soon Hua

    configuration file is missing

    i using .Net1.1 and develop a windows form application. i put some
    application settings in the web configuration file and load the settings
    when the form is loaded. however, everytime when i build the project the
    configuration file is missing and deleted even from recycle bin. can
    anyone tell me what's going on? the configuration file reside in the bin
    directory which is the same as the executable file.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: configuration file is missing

    Khor,

    I believe that when you build a project in VS.NET, it cleans out the bin
    directory before it performs a build. I think that what you have to do is
    add the config file to your project, and I think that it will move it to the
    bin directory on build.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Khor Soon Hua" <cefi_khor@hotm ail.com> wrote in message
    news:e5OKVDtRDH A.1572@TK2MSFTN GP12.phx.gbl...[color=blue]
    > i using .Net1.1 and develop a windows form application. i put some
    > application settings in the web configuration file and load the settings
    > when the form is loaded. however, everytime when i build the project the
    > configuration file is missing and deleted even from recycle bin. can
    > anyone tell me what's going on? the configuration file reside in the bin
    > directory which is the same as the executable file.
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • José Joye

      #3
      Re: configuration file is missing

      This is a change is version 1.1. the xxx.exe.config file is deleted and
      recreated using..... App.config file which should be one of your project
      files.
      If you do not have it (or mis-spell it), the target will still be deleted
      and you will loose hairs wondering why.

      José

      If you use Visual Studio, the
      "Khor Soon Hua" <cefi_khor@hotm ail.com> wrote in message
      news:e5OKVDtRDH A.1572@TK2MSFTN GP12.phx.gbl...[color=blue]
      > i using .Net1.1 and develop a windows form application. i put some
      > application settings in the web configuration file and load the settings
      > when the form is loaded. however, everytime when i build the project the
      > configuration file is missing and deleted even from recycle bin. can
      > anyone tell me what's going on? the configuration file reside in the bin
      > directory which is the same as the executable file.
      >
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Khor Soon Hua

        #4
        Re: configuration file is missing

        thanks a lot, Nicholas, it works, i solved my problem already.



        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        Working...