ClickOnce Deployment Updating

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NickP

    ClickOnce Deployment Updating

    Hi there,

    I have an application that I deploy via ClickOnce. It deploys fine the
    first time, but when updating it doesn't always work and the only way to fix
    it is to uninstall and the install the application again from scratch.
    Sometimes it does upgrade successfully though, it's very hit and miss. Once
    it has apparently finished upgrading the files, launching the main exe just
    fails before it even gets started, as if it has got something wrong during
    the upgrade.

    Any ideas what could cause this? And btw, I'm using VS 2005 and VB.NET.

    Nick.


  • Harry

    #2
    Re: ClickOnce Deployment Updating

    "NickP" <a@a.comwrote in message
    news:O8OoTKmbIH A.5400@TK2MSFTN GP03.phx.gbl...
    Hi there,
    >
    I have an application that I deploy via ClickOnce. It deploys fine the
    first time, but when updating it doesn't always work and the only way to
    fix it is to uninstall and the install the application again from scratch.
    Sometimes it does upgrade successfully though, it's very hit and miss.
    Once it has apparently finished upgrading the files, launching the main
    exe just fails before it even gets started, as if it has got something
    wrong during the upgrade.
    >
    Any ideas what could cause this? And btw, I'm using VS 2005 and VB.NET.
    >
    Nick.
    >
    Are you getting any error messages?


    Comment

    • NickP

      #3
      Re: ClickOnce Deployment Updating

      Hi there,

      Indeed,

      + A device attached to the system is not functioning (Exception from
      HRESULT: 0x8007001F)

      Which is odd because I have no idea what device this is referring to. I
      have an external hard drive which is connected and powered on but has never
      been part of the equation. :-\

      Nick.

      "Harry" <harryNoSpam@ff apaysmart.com.a uwrote in message
      news:eU8TssnbIH A.748@TK2MSFTNG P04.phx.gbl...
      "NickP" <a@a.comwrote in message
      news:O8OoTKmbIH A.5400@TK2MSFTN GP03.phx.gbl...
      >Hi there,
      >>
      > I have an application that I deploy via ClickOnce. It deploys fine
      >the first time, but when updating it doesn't always work and the only way
      >to fix it is to uninstall and the install the application again from
      >scratch. Sometimes it does upgrade successfully though, it's very hit and
      >miss. Once it has apparently finished upgrading the files, launching the
      >main exe just fails before it even gets started, as if it has got
      >something wrong during the upgrade.
      >>
      > Any ideas what could cause this? And btw, I'm using VS 2005 and
      >VB.NET.
      >>
      >Nick.
      >>
      >
      Are you getting any error messages?
      >

      Comment

      • Harry

        #4
        Re: ClickOnce Deployment Updating

        "NickP" <a@a.comwrote in message
        news:%23ReT6$xb IHA.5160@TK2MSF TNGP05.phx.gbl. ..
        Hi there,
        >
        Indeed,
        >
        + A device attached to the system is not functioning (Exception from
        HRESULT: 0x8007001F)
        >
        Which is odd because I have no idea what device this is referring to.
        I have an external hard drive which is connected and powered on but has
        never been part of the equation. :-\
        >
        Nick.
        >
        "Harry" <harryNoSpam@ff apaysmart.com.a uwrote in message
        news:eU8TssnbIH A.748@TK2MSFTNG P04.phx.gbl...
        >"NickP" <a@a.comwrote in message
        >news:O8OoTKmbI HA.5400@TK2MSFT NGP03.phx.gbl.. .
        >>Hi there,
        >>>
        >> I have an application that I deploy via ClickOnce. It deploys fine
        >>the first time, but when updating it doesn't always work and the only
        >>way to fix it is to uninstall and the install the application again from
        >>scratch. Sometimes it does upgrade successfully though, it's very hit
        >>and miss. Once it has apparently finished upgrading the files, launching
        >>the main exe just fails before it even gets started, as if it has got
        >>something wrong during the upgrade.
        >>>
        >> Any ideas what could cause this? And btw, I'm using VS 2005 and
        >>VB.NET.
        >>>
        >>Nick.
        >>>
        >>
        >Are you getting any error messages?
        >>
        >
        >
        Nick, try a google with "A device attached to the system is not functioning
        (Exception from
        HRESULT: 0x8007001F)". There are many ideas on what may cause this problem.
        It may also be an idea to run the sfc (system file checker) utility.


        Comment

        • Linda Liu[MSFT]

          #5
          Re: ClickOnce Deployment Updating

          Hi Nick,

          Thank you for your reply and detailed information!

          I searched in our internal database and found a similar issue in it. It
          says that this appears to be a store corruption issue. If this is appearing
          on only one machine, have a try to delete the following directory:

          %userprofile%\l ocal settings\apps

          and see if that corrects the problem.

          I also found a post in the Microsoft forum that describes the similar
          issue. You may visit the following link to get more detailed information:



          Hope this helps.

          Sincerely,
          Linda Liu
          Microsoft Online Community Support

          Comment

          • NickP

            #6
            Re: ClickOnce Deployment Updating

            whoah! that's odd, this post has only just appeared for me! haha strange...
            I got your reply to this one before...

            Cheers Linda, I shall give that a try! :)

            Nick.

            "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.comwrote in message
            news:wAeGsIqcIH A.6844@TK2MSFTN GHUB02.phx.gbl. ..
            Hi Nick,
            >
            Thank you for your reply and detailed information!
            >
            I searched in our internal database and found a similar issue in it. It
            says that this appears to be a store corruption issue. If this is
            appearing
            on only one machine, have a try to delete the following directory:
            >
            %userprofile%\l ocal settings\apps
            >
            and see if that corrects the problem.
            >
            I also found a post in the Microsoft forum that describes the similar
            issue. You may visit the following link to get more detailed information:
            >

            >
            Hope this helps.
            >
            Sincerely,
            Linda Liu
            Microsoft Online Community Support
            >

            Comment

            • Linda Liu[MSFT]

              #7
              Re: ClickOnce Deployment Updating

              Hi Nick,

              Thank you for your reply!

              If you publish the newer verion of the application using Visual Studio, the
              project is rebuilt and all files within it are marked as changed, which
              means that when upgrading, the entire application is downloaded and
              installed on the client machine.

              If possible, I suggest that you have a try on another machine to see if the
              problem still exists.

              You may also send me a simple project that could just reproduce the
              problem. To get my actual email address, remove 'online' from my displayed
              email address.

              Sincerely,
              Linda Liu
              Microsoft Online Community Support

              Comment

              • NickP

                #8
                Re: ClickOnce Deployment Updating

                Hey Linda,

                The problem only seems to exist on one computer that I have noticed so
                far. Also in regard to publishing, I have found that I *must* run a clean
                first, the publish straight after as if I don't do this, sometimes Visual
                Studio doesn't rebuild the entire solution and uploads a new version of the
                EXE but not the supporting DLL, this isn't what's effecting updating though
                of course.

                I'll email you a link to the app directly.

                Nick.

                "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.comwrote in message
                news:nhHt2BGeIH A.7396@TK2MSFTN GHUB02.phx.gbl. ..
                Hi Nick,
                >
                Thank you for your reply!
                >
                If you publish the newer verion of the application using Visual Studio,
                the
                project is rebuilt and all files within it are marked as changed, which
                means that when upgrading, the entire application is downloaded and
                installed on the client machine.
                >
                If possible, I suggest that you have a try on another machine to see if
                the
                problem still exists.
                >
                You may also send me a simple project that could just reproduce the
                problem. To get my actual email address, remove 'online' from my displayed
                email address.
                >
                Sincerely,
                Linda Liu
                Microsoft Online Community Support
                >

                Comment

                • NickP

                  #9
                  Re: ClickOnce Deployment Updating

                  Hi Linda,

                  RE: My last email stating that I thought that the problem had been
                  resolved by disabling the UAC, unfortunately that is not correct, although I
                  have located the exact cause of the issue.

                  I recieve the error during updating if I have my USB hard drive attached
                  and powered up. Even though the ClickOnce installer doesn't go anywhere
                  near the drive and it is certainly not failing.

                  All I can say is that it is a bug with ClickOnce.

                  Nick.

                  "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.comwrote in message
                  news:nhHt2BGeIH A.7396@TK2MSFTN GHUB02.phx.gbl. ..
                  Hi Nick,
                  >
                  Thank you for your reply!
                  >
                  If you publish the newer verion of the application using Visual Studio,
                  the
                  project is rebuilt and all files within it are marked as changed, which
                  means that when upgrading, the entire application is downloaded and
                  installed on the client machine.
                  >
                  If possible, I suggest that you have a try on another machine to see if
                  the
                  problem still exists.
                  >
                  You may also send me a simple project that could just reproduce the
                  problem. To get my actual email address, remove 'online' from my displayed
                  email address.
                  >
                  Sincerely,
                  Linda Liu
                  Microsoft Online Community Support
                  >

                  Comment

                  • Linda Liu[MSFT]

                    #10
                    Re: ClickOnce Deployment Updating

                    Hi Nick,

                    Thank you for your feeback and new findings!

                    Do you mean that the problem doesn't exist when the UAC feature on the
                    client machine is disabled and the USB hard drive isn't attached to the
                    client machine?

                    I suggest that you file a feeback about this issue in the Microsoft Connect
                    web site:



                    Thank you for your contribution to the production of Microsoft!

                    Sincerely,
                    Linda Liu
                    Microsoft Online Community Support

                    Delighting our customers is our #1 priority. We welcome your comments and
                    suggestions about how we can improve the support we provide to you. Please
                    feel free to let my manager know what you think of the level of service
                    provided. You can send feedback directly to my manager at:
                    msdnmg@microsof t.com.

                    This posting is provided "AS IS" with no warranties, and confers no rights.

                    Comment

                    • NickP

                      #11
                      Re: ClickOnce Deployment Updating

                      Hi Linda,

                      The problem exists on both machines only when the external USB hard
                      drive is attached and turned on, regardless of the state of the UAC.

                      Basically what I do now, is every time I update the application I switch
                      off the drive and it works fine. Of course this is *not* an option for the
                      end user so I am pretty keen to get to the bottom of this and find a
                      resolution.

                      I'll file some feedback to the site as you suggest, cheers Linda.

                      Nick.

                      "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.comwrote in message
                      news:UKA$8GNhIH A.360@TK2MSFTNG HUB02.phx.gbl.. .
                      Hi Nick,
                      >
                      Thank you for your feeback and new findings!
                      >
                      Do you mean that the problem doesn't exist when the UAC feature on the
                      client machine is disabled and the USB hard drive isn't attached to the
                      client machine?
                      >
                      I suggest that you file a feeback about this issue in the Microsoft
                      Connect
                      web site:
                      >

                      >
                      Thank you for your contribution to the production of Microsoft!
                      >
                      Sincerely,
                      Linda Liu
                      Microsoft Online Community Support
                      >
                      Delighting our customers is our #1 priority. We welcome your comments and
                      suggestions about how we can improve the support we provide to you. Please
                      feel free to let my manager know what you think of the level of service
                      provided. You can send feedback directly to my manager at:
                      msdnmg@microsof t.com.
                      >
                      This posting is provided "AS IS" with no warranties, and confers no
                      rights.
                      >

                      Comment

                      Working...