Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. ClickOnce Deployment Issue

ClickOnce Deployment Issue

Scheduled Pinned Locked Moved .NET (Core and Framework)
sysadminquestioncsharpdatabasesql-server
13 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Michael Sync

    When you are publishing the application by using ClickOnce, the yourapp.exe.config file will be included in your deployment folder. No need to worry about what you have stored in app.config file. Your application will work as usual. If the user download the application, the app.config file will be downloaded into his/her ClickOnce client cache folder.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

    D Offline
    D Offline
    DotNetWWW
    wrote on last edited by
    #3

    Thanks , but Where is the client deployment cache folder located? and another issue is that Should Visual Studio be installed on the server machine or I can publish my app in my pc and then transfer it to Server pc and share it for other clients? Thanks in advance

    M 1 Reply Last reply
    0
    • D DotNetWWW

      Thanks , but Where is the client deployment cache folder located? and another issue is that Should Visual Studio be installed on the server machine or I can publish my app in my pc and then transfer it to Server pc and share it for other clients? Thanks in advance

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #4

      You are publishing your application on the server directly. If you need to add or modify the required dlls that you already published on the server, you can use MageUI to make changes. then, you can give the installation URl to client to install your application.. then your application will be downloaded to the client machine (under ClickOnce Deployment Cachae folder e.g. C:\Documents and Settings\[User Name]\Local Settings\Apps\2.0) and will run the application..

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      D 1 Reply Last reply
      0
      • M Michael Sync

        You are publishing your application on the server directly. If you need to add or modify the required dlls that you already published on the server, you can use MageUI to make changes. then, you can give the installation URl to client to install your application.. then your application will be downloaded to the client machine (under ClickOnce Deployment Cachae folder e.g. C:\Documents and Settings\[User Name]\Local Settings\Apps\2.0) and will run the application..

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        D Offline
        D Offline
        DotNetWWW
        wrote on last edited by
        #5

        I'm not developing the application in the environment that the server is located , I'm at home and working on project and the server pc is in the customer office somewhere else, In this situation how can I deploy the app? And would you please talk more about MageUI and how to access it? Thanks in advance ,

        M 1 Reply Last reply
        0
        • D DotNetWWW

          I'm not developing the application in the environment that the server is located , I'm at home and working on project and the server pc is in the customer office somewhere else, In this situation how can I deploy the app? And would you please talk more about MageUI and how to access it? Thanks in advance ,

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #6

          You can just copy the published folder that you have published in your machine. In server, you can paste your folder on the server. then create the virtual directory on that server m/c and point it to your folder. that's all you need.

          DotNetWWW wrote:

          would you please talk more about MageUI and how to access it?

          You can type megaui on VS 2005 commandline. (not normal commandline). I highly recommend you to read "ClickOnce Deployment Documentation.pdf" from "ClickOnce Community Resource Kit". The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application. another thing is that if you are publishing the application, you have to add the dll to your project.. There are some cases that you don't want to add those adds.. (e.g CAB projects or SCSF project.) For that case, megaui tool helps a lot..

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          D 1 Reply Last reply
          0
          • M Michael Sync

            You can just copy the published folder that you have published in your machine. In server, you can paste your folder on the server. then create the virtual directory on that server m/c and point it to your folder. that's all you need.

            DotNetWWW wrote:

            would you please talk more about MageUI and how to access it?

            You can type megaui on VS 2005 commandline. (not normal commandline). I highly recommend you to read "ClickOnce Deployment Documentation.pdf" from "ClickOnce Community Resource Kit". The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application. another thing is that if you are publishing the application, you have to add the dll to your project.. There are some cases that you don't want to add those adds.. (e.g CAB projects or SCSF project.) For that case, megaui tool helps a lot..

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

            D Offline
            D Offline
            DotNetWWW
            wrote on last edited by
            #7

            Thanks a lot for your great help ,

            Michael Sync wrote:

            then create the virtual directory

            Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?

            Michael Sync wrote:

            The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application

            What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?! Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes? Thanks a lot again

            M 1 Reply Last reply
            0
            • D DotNetWWW

              Thanks a lot for your great help ,

              Michael Sync wrote:

              then create the virtual directory

              Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?

              Michael Sync wrote:

              The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application

              What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?! Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes? Thanks a lot again

              M Offline
              M Offline
              Michael Sync
              wrote on last edited by
              #8

              DotNetWWW wrote:

              Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?

              Is your server the web server? If yes, it's not necessary to create the Virtual directory. The main reason why we create the VD is that we don't want to use the "Folder Sharing" for that. If someone wants to install the ClickOnce application, they will access this application through URL..

              DotNetWWW wrote:

              What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!

              No. You don't need to worry about the updates but we don't use that option in our projects.

              DotNetWWW wrote:

              Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?

              I don't know about that.

              Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

              D 1 Reply Last reply
              0
              • M Michael Sync

                DotNetWWW wrote:

                Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?

                Is your server the web server? If yes, it's not necessary to create the Virtual directory. The main reason why we create the VD is that we don't want to use the "Folder Sharing" for that. If someone wants to install the ClickOnce application, they will access this application through URL..

                DotNetWWW wrote:

                What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!

                No. You don't need to worry about the updates but we don't use that option in our projects.

                DotNetWWW wrote:

                Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?

                I don't know about that.

                Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                D Offline
                D Offline
                DotNetWWW
                wrote on last edited by
                #9

                Thanks

                Michael Sync wrote:

                No. You don't need to worry about the updates but we don't use that option in our projects.

                Why?

                M 1 Reply Last reply
                0
                • D DotNetWWW

                  Thanks

                  Michael Sync wrote:

                  No. You don't need to worry about the updates but we don't use that option in our projects.

                  Why?

                  M Offline
                  M Offline
                  Michael Sync
                  wrote on last edited by
                  #10

                  DotNetWWW wrote:

                  Why?

                  Because we want our application to run offline too. Because we don't want our employees to go back if the connection is down.. Another reason is that we used the dynamic updates (from code) to get the latest updates. So, we want to disable "The application should check for updates" option.

                  Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                  D 1 Reply Last reply
                  0
                  • M Michael Sync

                    DotNetWWW wrote:

                    Why?

                    Because we want our application to run offline too. Because we don't want our employees to go back if the connection is down.. Another reason is that we used the dynamic updates (from code) to get the latest updates. So, we want to disable "The application should check for updates" option.

                    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                    D Offline
                    D Offline
                    DotNetWWW
                    wrote on last edited by
                    #11

                    Thanks agagin , My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right? And when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?

                    M 1 Reply Last reply
                    0
                    • D DotNetWWW

                      Thanks agagin , My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right? And when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?

                      M Offline
                      M Offline
                      Michael Sync
                      wrote on last edited by
                      #12

                      DotNetWWW wrote:

                      My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?

                      Yeah. You are right.

                      DotNetWWW wrote:

                      when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?

                      Yeah. You are right. :)

                      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                      D 1 Reply Last reply
                      0
                      • M Michael Sync

                        DotNetWWW wrote:

                        My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?

                        Yeah. You are right.

                        DotNetWWW wrote:

                        when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?

                        Yeah. You are right. :)

                        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                        D Offline
                        D Offline
                        DotNetWWW
                        wrote on last edited by
                        #13

                        Thanks , another point is that when I use Online Option , Where the application.exe.config for each client is saved? as I told you that my app connection string is stored in app.config? and in Online Only option , the app is not cached in clinet machine anymore , Am I Right? Thanks a lot , my friend :)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups