473,651 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2532
Hi Mike,

Thank you for posting here.

I noticed that you have posted the same question in our
microsoft.publi c.dotnet.framew ork 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.Deployme nt.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******@onlin e.nospamwrote in message
news:3F******** *************** ***********@mic rosoft.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
1776
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 regular updates to the program on the client end, ClickOnce led itself to be the better candidate. With the initial Windows Installation I was planning on using obfuscation built in Visual Studio to make the code unable to be reverse engineered...
1
1696
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 marked as "content". When I publish the application with ClickOnce and update my application - these dlls (along with a .chm help file that doesnt change) keep being redownloaded. From what I've read in all of the ClickOnce marketing hype, it...
2
1392
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 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...
7
9090
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, it's not considered as a network deployed application and it's not able to use any of the update features programatically.. any ideas? workarounds? thank you,
2
4240
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 properly or at least confirm if it will just not work? When not requiring the client certificate the deployment site works fine. However, when I set SSL to "require client certificate" I am prompted for a client cert when I initially open the url....
3
2680
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 dwonloading updates on client machine cliconce "deletes" my directory and file. How to prevent this?
0
1163
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 particular database is lost. After searching Google, I found a workaround to this. If I exclude the database file from the update, everything is fine, kind of. The problem is, if I exclude the database file from future updates, then if someone...
7
4240
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 reference to assemblies which are not installed (registered) on curent machine. In solution are some library projects which works with MS Office and therefore has referenced some MS Office libraries. If no MS Office (2000/2003/2007) is installed on...
0
1964
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 deploy an *offline* application that can only be installed from behind our organizational firewall (a Win2k3 domain), but can be updated from anywhere (hotels, etc). To do this, the publishing folder location is set to a UNC share path:
0
8361
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8278
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7299
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.