473,808 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ClickOnce "Application.Is NetworkDeployed " problem

11 New Member
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 5813
Motoma
3,237 Recognized Expert Specialist
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
zombiechewtoy
11 New Member
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 Recognized Expert Specialist
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
13579
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 = CreateObject("Word.Application")
4
3182
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 simple embedded dll, but then i lose the trust prompt that ClickOnce offers. Any ideas? Mark
2
15509
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: encType="multipart/form-data" <INPUT id="UploadFile" type="file" name="UploadFile" runat="server"> Private Sub btnUploadFile_Click(ByVal sender As System.Object, ByVal e
13
5101
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 only 1 thread per line Trunk_Thread.ApartmentState = ApartmentState.STA
9
5116
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 open a second instance of the application. This will cause an unhandled exception and the "Send Error Report" box shows up. Does this happen to anyone else, or is it just me? Debug info: "Unhandled exception at 0x00e149fd in...
0
940
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 applocation once it is installed on a clients pc?? The problem is that my program reference some compiled help files and an access database and need to keep track of where these files will be located once installed.
7
9100
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,
0
2090
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 Project Designer. This opens the Application Updates dialog box 2. Select The Application Should Check For Updates check box. 3.To choose when the application should check for updates, select Before The Application Starts, or After the...
5
5103
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 application on my computer and also one one other computer by clicking the Install button. However, on another computer I get the error: (firstly) Cannot download the application. The application is missing required files. (then) Unable to...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
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
9195
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...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
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
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.