none
How change app.config after Publish (please) RRS feed

  • Question

  • Hi all,

     

    I am working on a windows forms app. I do my development in a development environment, and I have certain settings in my app.config like connection to WCF services that point to my development WCF Services.

     

    When I deploy my Application with ClickOnce, those settings are going to have to be updated to their production values.

     

    What is the recommended method for managing this? I can't imagine modifying the app.config on production and then having to start over again with the development values the next time i publish.

     

    In production enviroment I haven't Visual Studio for do again new Publish.

     

    Using ClickOnce VS 2005, I have Custom Prerequisites too

     

     

    Please, mister I need modify URL Start Location and app.config after Publish. How can I do it ?

     

    I have this files as results of Publish:

     

     

    setup.exe

    publish.htm

    CertBackup.pfx

    AdministradorWin_1_0_0_0.application

    AdministradorWin.application

     

    Folders for prerrequisites:

    dotnetfx

    grupobackup.registrarocx

    netfx30

    reportviewer

     

    Folder AdministradorWin_1_0_0_0

     

    AdministradorWin.exe.deploy

    AdministradorWin.exe.config.deploy

    AdministradorWin.exe.manifest

    ALHE.Data.dll.deploy

    ....

     

     

    How can I modify the .config (to changes values in appsettings for environment production) and Start Location (for avoid System.Deployment.Application.DeploymentDownloadException) , step by step, please ??

     

    Thanks in advanced. Your great help will be very grateful forever.

     

    Saturday, September 6, 2008 11:52 AM

All replies

  • Hi Alhambra Eidos Kiquenet

     

    Here is an article talking about how to keep client application settings when update version.

    http://msdn.microsoft.com/en-us/library/ms228995.aspx

     

    If you have any more question, don’t hesitate to tell me.

     

    Sincerely,

    Kira Qian

     

    Windows Forms General FAQs
    Windows Forms Data Controls and Databinding FAQs

    Tuesday, September 9, 2008 8:52 AM
  • Thanks mister,

     

    I have published my application in UNC directory using ClickOnce Publish command. Now, I need change settings (app.config) for my application.

     

    My application requires Prerequisites, that I have included in Publish configuration.

     

    I need use Mage/MageUI for change values in app.config. I need change too the Publishing Location .

     

    Any tutorial with all steps, please ??

     

    Thanks in advance.

     

    Wednesday, September 10, 2008 1:39 PM
  • See this.
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=153602&SiteID=1
    I don't think there is any good way to have just one project to let customers have different config files.

    Thursday, September 11, 2008 8:51 AM
  •  

    Please, mister I need modify URL Start Location and app.config after Publish. How can I do it ?

     

    I have this files as results of Publish:

     

     

    setup.exe

    publish.htm

    CertBackup.pfx

    AdministradorWin_1_0_0_0.application

    AdministradorWin.application

     

    Folders for prerrequisites:

    dotnetfx

    grupobackup.registrarocx

    netfx30

    reportviewer

     

    Folder AdministradorWin_1_0_0_0

     

    AdministradorWin.exe.deploy

    AdministradorWin.exe.config.deploy

    AdministradorWin.exe.manifest

    ALHE.Data.dll.deploy

    ....

     

     

    How can I modify the .config (to changes values in appsettings for environment production) and Start Location (for avoid System.Deployment.Application.DeploymentDownloadException) , step by step, please ??

     

    Thanks in advanced.

    Tuesday, October 7, 2008 7:45 AM