473,387 Members | 1,585 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,387 software developers and data experts.

ClickOnce "Application.IsNetworkDeployed" problem

I'm having a problem displaying the version number of the ClickOnce deployment on my programs, but it's under odd conditions...

I have a program which is distributed via ClickOnce to around 50 PC's. On a handful of these, the version number displays when it is run from the network. However, on most, it is blank.

I have 2 labels. One that simply says "Version", and another that displays the actual number. Neither label is supposed to show if the app is not network deployed. This works...since neither label shows when I run the application from the IDE. However, when running after a network installation, the user will see the "Version" label, but the label with the actual number is left blank.

What makes this even more confusing...on a couple machines, the version number is populated. There is no difference in these machines that I can tell...they all install the app from the same location, etc.

Any ideas?

Code is below.


Expand|Select|Wrap|Line Numbers
  1.         If My.Application.IsNetworkDeployed Then 'If running from the network
  2.             Dim version As String
  3.             version = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString
  4.             lblVersion.Text = version
  5.             lblVersion.Visible = True
  6.             lblVersionTitle.Visible = True
  7.         Else 'If running the application locally
  8.             lblVersion.Visible = False
  9.             lblVersionTitle.Visible = False
  10.             Exit Sub
  11.         End If
  12.  
May 10 '07 #1
3 5674
Motoma
3,237 Expert 2GB
I would suggest building in a debug mode that will give you an interface to pull data from your system. Perhaps build a debug console which will let you dump and query your state variables and see what exactly is going on.
May 10 '07 #2
How would I go about doing this with a network deployment, though? If I push out a different version of the app, it will be installed for all users when they restart it.
May 10 '07 #3
Motoma
3,237 Expert 2GB
Create it as a different Project? A new application?
May 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: The Roys | last post by:
Hi Im doing something wrong in quitting the Word.Application in my VB program. I have General Declarations Dim AppWord As Word.Application Form_Load() Set AppWord =...
4
by: markoueis | last post by:
Is there any way to embed a ClickOnce Application into the browser? I love the way ClickOnce works, but the problem is I would like it to display the windows form in the browser. I could use a...
2
by: CVerma | last post by:
I'm using an html input control (System.web.UI.HTMLControls.HTMLInputFile) to upload files such as msword, excel, jpg, and pdf. I have the encType property set in the form:...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
0
by: Christie | last post by:
I have two problems with my ClickOnce VB.Net application: Is there a way that one can specify a default location where the application should install?? How do I get the path to location of 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,...
0
by: Velupula | last post by:
To make your ClickOnce application updates mandatory. You can configure your application for updates as outlined in the following steps: 1. Click the Updates button on the Publish pane of the...
5
by: bogorman | last post by:
Am a newcomer to Visual Studio 2005 but have managed to develop a simple application in VB using it. I want to deploy it. Have tried using ClickOnce which generates the webpage ok. I can install the...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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,...
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.