ClickOnce Deployment Updating

N

NickP

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.
 
H

Harry

NickP said:
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?
 
L

Linda Liu[MSFT]

Hi Nick,

How do you publish your ClickOnce application, using the publish command in
VS IDE or from command line?

What error are you getting when upgrading the ClickOnce applicaition?

If you publish the ClickOnce application within VS IDE, the only thing to
publish a newer version of application is to change the 'Publish Version'
in the Publish tab in Project Designer.

If you publish the ClickOnce application manunally, please refer to the
following MSDN document to get detailed information on how to do it:
'Walkthrough: Deploying a ClickOnce Application Manually'
http://msdn2.microsoft.com/en-us/library/xc3tc5xx(VS.80).aspx

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

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

NickP

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.
 
N

NickP

Hi Linda,

I'm publishing from within VS 2008, changing the version number is not a
problem. The problem is after the client has been updated after it has
detected a new version, it no longer works, the only fix is to either do a
repair installation then reinstall, which doesn't always work, or uninstall
then install the latest version. And as mentioned previously, this doesn't
always happen, sometimes it updates fine with no problems.

The error I'm getting is,

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

I have no idea what device this is referring to, I have an external hard
drive but this is not part of the equation, besides, it's working fine. The
application is being installed to local disk.

Any ideas what would cause this problem?

Nick.
 
N

NickP

VS 2005 rather!

NickP said:
Hi Linda,

I'm publishing from within VS 2008, changing the version number is not
a problem. The problem is after the client has been updated after it has
detected a new version, it no longer works, the only fix is to either do a
repair installation then reinstall, which doesn't always work, or
uninstall then install the latest version. And as mentioned previously,
this doesn't always happen, sometimes it updates fine with no problems.

The error I'm getting is,

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

I have no idea what device this is referring to, I have an external
hard drive but this is not part of the equation, besides, it's working
fine. The application is being installed to local disk.

Any ideas what would cause this problem?

Nick.
 
H

Harry

NickP said:
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.
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.
 
L

Linda Liu[MSFT]

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%\local 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:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2582302&SiteID=1

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
L

Linda Liu[MSFT]

Hi Nick,

How about the problem now?

If you need our further assistance, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
N

NickP

Hi Linda,

I've still got the problem, not fixed it yet. I have just been working
around it by uninstalling then installing from scratch.

Any ideas about the error message I'm getting?

Nick.
 
N

NickP

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.
 
N

NickP

Unfortunately it still happens even after completely deleting the folder
containing all of the click once apps.

As far as I can see this isn't an issue with Publishing, this is an issue
with Installation, the ClickOnce installer, through all of it's fancy checks
of only downloading the necessary changes, is failing, badly.

Any ideas how I can make this a little more stable, there isn't anything
amazingly complex about my application.

Nick.
 
L

Linda Liu[MSFT]

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
 
N

NickP

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.
 
N

NickP

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.
 
L

Linda Liu[MSFT]

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:

http://connect.microsoft.com/VisualStudio/Feedback

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:
(e-mail address removed).

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

NickP

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top