Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2006

Tip: Looking for answers? Try searching our database.

ClickOnce program fails to run properly after update

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael D. Reed - 20 Nov 2006 18:31 GMT
I am using ClickOnce to distribute a program.  It works well except for one
detail.  When a new version is installed, the program does not initialize
properly immediately after the update.  The sequence is the user starts the
program, is informed a new version is ready, installs it, when it is complete
and the main form is displayed, the user needs close the form, and restarts
the program to the form to initialize properly.  
The problem is that several controls are left disabled.  The program uses
MDI with a main form and several child forms as needed.  The problem is on
the main form.  The controls that are not enabled are two list boxes, a tool
bar, and a user control containing a numeric control.  The menu and form tool
bar initialize ok.  The form uses the table layout control and several
panels’ controls.  The controls that do not initialize properly are in there
own panel in a cell of the table layout control.  It is like the list boxes
are not there, they control the other controls determining when they are
enabled.  
One list box is bound to a table and is filled.  However, the value change
event does not seam to be working.  The other list box, contains a the list
of the available MDI child forms and is filled in manually.  It list is not
filled in or updated even when I generate a new MDI child form.  
Restarting the program and every thing works normally.        
How do I get the form to run normally form the start?

Signature

Mike Reed

Linda Liu [MSFT] - 21 Nov 2006 07:18 GMT
Hi Mike,

Thank you for posting here.

I noticed that you have posted the same question in our
microsoft.public.dotnet.framework newsgroup, which I have already
responded. So please check my answer there and if you need any further
assistance on this particular issue, please reply to me in that thread so I
can follow up with you in time.

For your convenience, I have included my reply as follows.

====================================================
Based on my understanding, you have a ClickOnce deployed application. When
a new version is installed and the application is run, some controls on the
main form are disabled. If you exit the application and then restart , all
works fine. If I'm off base, please feel free to correct me.

In theory, when an application is updated on a client machine via
ClickOnce, the application files of the new version are downloaded to the
client pc to replace the old files. This action won't disable the controls
of the application.

I have also searched KB on Microsoft web site, but unfortunately I didn't
find an article discussing about this problem.

Could you please tell me how you update the applicaiton via ClickOnce? Do
you use the default behaviour of ClickOnce (Project designer| Publish |
Updates, select the checkbox before the item "The application should check
for updates") , or program custom upgrade behavior with the classses in
System.Deployment.Application namespace?

If you update the application with custom upgrade behavior, have you
disabled some controls at the beginning of the upgrade, but forgotten to
enable them after the upgrade is finished?

=====================================================

Thank you and have a nice day!

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.
chanmm - 21 Nov 2006 09:29 GMT
ClickOnce is able for multiple versions deployment but I do not think is
appropriate for updating the app. I would suggest uninstall before Click the
ClickOnce is better.

chanmm

>I am using ClickOnce to distribute a program.  It works well except for one
> detail.  When a new version is installed, the program does not initialize
[quoted text clipped - 26 lines]
> Restarting the program and every thing works normally.
> How do I get the form to run normally form the start?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.