473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ClickOnce program fails to run properly after update

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
Nov 20 '06 #1
2 2515
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Nov 21 '06 #2
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

"Michael D. Reed" <ch******@online.nospamwrote in message
news:3F**********************************@microsof t.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

Nov 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mr. Beck | last post by:
I am in the process of creating a C# ClickOnce application that will be deployed in the coming months. I was initially thinking of deploying it through Windows Installation but due to the need of...
1
by: Andrew86 | last post by:
I have an application which requires a number of DLLs (unmanaged ansi C dlls) to reside in the same directory as the application. I currently have these dlls included in the project folder and...
2
by: Michael D. Reed | last post by:
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...
7
by: hgirma | last post by:
Hello Gurus, Is it possible to schedule a task to run an application deployed using ClickOnce? The executable changes location with each update.. and if i were to run the executable directly,...
2
by: =?Utf-8?B?Sm9obiBC?= | last post by:
A windows forms 2.0 ClickOnce deployment fails when both SSL is enabled and "require client certificate" enabled on the IIS deployment web server. Can anyone assist with how to configure this...
3
by: Meelis Lilbok | last post by:
Hi I have made a project with vb.net and publish it(clickonce) On firs laucnh app creates a xml file in startuppath\database\file.xml Now when i update my app and publish it, after...
0
by: andrewschools | last post by:
Hi, I'm using ClickOnce for all of my installations and updates. However, when I modify any of the datasets in my application, when a user downloads the new update, all their data saved in their...
7
by: LukasMalik | last post by:
Hi all, my application (C# WinForm .NET 3.5) is distributed via ClickOnce deployment. Application should check for updates on our company web. Problem comes when any part of application has...
0
by: =?Utf-8?B?VCFN?= | last post by:
Hi All, I've been successfully deploying clickOnce successfully through the 2.0 and 3.X frameworks, but now have a problem with ClickOnce updates in 3.5 SP1. The scenario is this: I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.