473,799 Members | 2,885 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 5802
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
13576
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
15506
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
5097
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
5113
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
938
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
9099
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
5102
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...
0
10249
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...
1
10219
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,...
1
7563
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
6804
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
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
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
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2937
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.