|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ClickOnce program fails to run properly after updatedetail. 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? -- Mike Reed 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. 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 Show quoteHide quote "Michael D. Reed" <chaskamn@online.nospam> wrote in message news:3F6ACD1B-E966-472A-9815-E3DA82931258@microsoft.com... >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? > > > -- > Mike Reed
How do I even start debugging this.
User Interface Design - Books? Saving the Color value into a string Need for Speed naming conventions forced by VS.NET? Attribute instantiation find number in a string Can a Decimal variable be set to "Not a Number" Trouble displaying info from access db I need 2-3 books on VB.NET, Office automation. Any suggestions? |
|||||||||||||||||||||||