Change User Settings In ClickOnce Deployment?

Apr 27, 2010

I have a program, written in VB 2008, that I deplpoy in Terminal server, that has some user settings (scope: user) that I'd like to modify locally. By default the user settings were not even installed locally. I think they are supposed to appear in the ClickOnce data directory. Using the following thread, I was able to get the user.settings installed locally:

[URL]

basically, i set my xml file as "Content" and I set the publish status as "Data File".

With this, my settings file appears in:

"C:Documents and SettingsusernameLocal SettingsApplication DataCompanyXYZProgramNameL.exe_Url_arzmal0maveh1nnwfib245pfk13xqfma1.0.0.0user.settings"

The problem is that modifying this file doesn't affect the application. I changed some settings, restarted the app, and changes were ignored.

View 1 Replies


ADVERTISEMENT

Winforms - Losing My.Settings" With Each New ClickOnce Deployment Release?

Nov 9, 2009

I am using the built-in My.Settings functionality in VB.NET to save application settings.

This is very convenient but I notice that each time I release a new version, the settings are lost.

Why and how can I prevent it?

View 1 Replies

ClickOnce Overwrites User Settings Settings .NET 2008 Cant Use Registry UAC Causes Error

Aug 5, 2009

I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..

I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..

View 1 Replies

Location Of ClickOnce Installation And What Are The Restrictions Of ClickOnce Deployment?

Apr 11, 2009

Where is the location of ClickOnce Installation and what are the restrictions of ClickOnce Deployment?

remember to mark the replies as answers if they help and unmark them if they provide no help.

Welcome to the All-In-One Code Framework! If you have any feedback,

View 1 Replies

.net - Click-Once Deployment Overwriting User Settings?

Feb 4, 2010

Click-once deployments are suppose to maintain user settings, but on this one application we have the user settings are overwritten to the Visual Studio default every time we publish an update.

View 2 Replies

C# - User Settings Keep Resetting To Default After Each Deployment?

Aug 18, 2009

My deployment of upgrades to an application written in C# (.NET 3.0) consist of simply replacing an older .exe with the new one. Because that older version can currently be used by some customers, I simply rename the old version to blahblah.exe.old and copy the new one to the same folder. When the user opens up the application again, the new one loads up.

The problem is, every time I deploy a new version, the user scope settings are always reverted back to the default values.

View 1 Replies

IDE :: Fix ClickOnce Deployment?

Sep 2, 2009

After 18 years of experience developing in VB you have succesfully made this the most difficult deployment method possible

View 6 Replies

.net - ClickOnce Deployment Errors

Mar 30, 2009

I am trying to deploy a ClickOnce app. It had worked previously when the server was just sitting with .Net 2.0 installed (no SP). Recently the server had 3.5SP1 installed on it and now ClickOnce is failing with the error:Value does not fall within the expected range inside System.Deployment.

Here is the information posted on the MSDN forums (answers there are generally hit or miss for me) with the call stack:It was in VS 2005 w/SP1 and I tried changing the path I publish to, changing the installation URL, changing the assembly name, manually controlling versions, running mage -cc, manually removing all application data in %userprofile%AppDataLocalApps and even changing deployment servers completely but still get the same error:

[Code]...

View 6 Replies

ClickOnce Deployment Error

Aug 3, 2011

I Have a BIG problem. I make applications on Visual basic 2010 and of course use clickonce. when another computer wants to install an application (From the mediafire in a ZIP folder) the user extracts the folder, launches either the "Setup" or the ClickOnce application and then selects install and the following error message appears:

"Unable to install or run the application. The Application requires thaat assembly Microsoft.VisualBasic.Powerpacks.Vs Version 10.0.0.0 be installed in the Global Assembly Cache (GAC) First. Please contact your system anministrator."

View 3 Replies

C# - ClickOnce Deployment And Installation Path On PC?

Jul 8, 2011

I have a application that I deployed to web server. Users go to "publish.htm" deployment web page to install my vb.net application. Where is the application installed? I don't think it is installed under "Program Files" like others.

View 2 Replies

IDE :: ClickOnce Deployment Not Fully Updated

Feb 13, 2010

I deploy my windows application by ClickOnce deployment for first time it is updating properly. But I deploy again to the same update location it is not fully update to the client system. Some client systems has successfully update but some are NOT FULLY (sometimes partial updates happen) updated.

View 1 Replies

VS 2008 ClickOnce Deployment And IIS6?

Dec 24, 2009

I am having great difficulty installing my app from a Click Once Deployment from my website using IIS6 I have done some searching online and I have carried out everything I can find but still nothing. I have tried with the .deploy option on and off and I get the error:The Page Cannot Be Found - HTTP Error 404 when I hit the 'Install' button and its trying to launch /setup.exe I have added the following into Mime Types:

.exe
.manifest
.deploy
.Application

and I have Restarted IIS Service after the changes as documents somewhere.

View 6 Replies

ClickOnce Deployment After Resetting Application Files

Apr 12, 2009

I use VS 2008 Standard. If I do a QuickOnce deployment after resetting Application Files in the Publish Tab I get a bunch of messages saying that various files are not in the GAC. To solve this I change the Publish Status from Prerequisite (Auto) to Include and set Download Group to Required. Then when I install the application I get the splash screen and then the message that the application has stopped working. There was a workaround posted to delete /bin/obj/.cache etc, but I have no /bin/obj/ folder.

View 1 Replies

ClickOnce Deployment Error And Application Identity

Mar 26, 2009

All,I seem to have stumbled upon a ClickOnce error that stops me from auto-updating. When I Deploy my program using ClickOnce it publishes to the specified location and installs just fine. I can run my program no problem if I activate it from the start menu. However, I have code that registers the program as the default to open a specific file type. Naturally, I want my user to be able to double click on the file type of my choice and have my program open like normal. All-in-All this works.

The problem arises because I need my program to check for updates before loading my program, much like it does when I open the program from the start menu (I set the auto-update check within the ClickOnce options). However, this check does NOT run when the user double-clicks a file type to run my program, it merely skips this step and opens the program. So first I tried to find a way to run the Update manually through code, what I cam up with was this: [Code]

View 5 Replies

Use ClickOnce Deployment On My Application To Get The Update Feature?

Dec 21, 2009

I use ClickOnce Deployment on my application to get the update feature.But i really do not like the deployment and the setup Is their a way I can use the Visual Studio setup feature to make a msi package for my application but still have the update feature?

View 4 Replies

VS 2008 : Distribute A Help File With An App Using ClickOnce Deployment?

Mar 11, 2010

I've used VB2008EE to create a Windows Forms app which includes a Help form. The helpform contains a Treeview for navigation and a WebBrowser control which displays the relevant part of an HTML page containg the help information.The app is intended to be used offline - so I need to include the HTML page file as part of the published app, and I need to be able to specify where this HTML file will be installed on the target computer so that the URI in my Helpform which loads the Help page will locate this file.
(I expect the HTML file should live in the directory pointed to by the:

My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData property)

how to specify the Project settings and Publish Wizard etc. (& whatever else is necessary) in order to achieve the above.

View 3 Replies

ClickOnce Deployment - How To Enable Updates Button In Publish Tab

Mar 26, 2010

I have wriiten several windows app using Visual Studio 2008. All projects but one where the "Updates" button is disabled in the Publish tab. How can I enable it?

View 2 Replies

Clickonce Nightmare System.Deployment.Application.DeploymentDownloadException?

Jun 9, 2009

anyone know how to fix this? this is what i get when i try to run setup.exe

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053

[code].....

View 3 Replies

Deployment :: Outlook Security ... Register Com Object ... Clickonce

Feb 11, 2009

I have now spent a long time trying to figure out how to fix this problem, hoping someone here could give me some hints What I'm trying to do: I need a way to save mail items to a folder on the computer What I have done so far: I created a component, where you could drag a mail item from Outlook on to. This component then saves this mail item to a folder on the computer

[Code]...

View 2 Replies

IDE :: Clickonce Deployment - Report Viewer Deploys Incorrectly?

Oct 24, 2008

I have an application that I'm deploying using Clickonce that includes the Report Viewer. On my development machine, the reports work perfectly. However, on client machines, the reports are having printing problems. On some machines, the first print sends a 2 page document to a printer that displays an error message. On those machines, printing the second time is successful. On other machines, the first attempt doesn't get sent to the printer at all. Subsequent attempts work just fine.This happens each time a form with the report viewer is displayed - the user must print twice to get a correct print-out of the report.

NOTE: if I create a network shortcut to the application for a user that has NOT installed the Clickonce app, they are able to print from the Reportviewer without any issues. However, once they install the Clickonce app, the Reportviewer is "broken" (for lack of a better word) and won't print on the first attempt in ANY application.I know that I probably need to do something in my Publish settings to force the correct, newer version of the Reportviewer to be installed, but I can't figure out what that is.

I have Microsoft Visual Studio 2005 Reportviewer selected in the Prerequisites list, and there are 4 Reportviewer files in the Application Files list:Microsoft.ReportViewer.Common.dll - Prerequisite (Auto)Microsoft.ReportViewer.ProcessingObjectModel.dll - Prerequisite (Auto)Microsoft.ReportViewer.WinForms.dll - Prerequisite (Auto)Microsoft.ReportViewer.WinForms.xml - Exclude (Auto)?

View 1 Replies

VS 2008 Synchronice Database In ClickOnce Deployment Application?

Aug 24, 2011

My application/project has an Access Database as its Project DataSource. I have a DataSet Designer (.xsd), with many TableAdapters, some of which I've created via the Designer. I have 2-10 users/foreman on any given workday, with their own Netbook and my ClickOnce Application.Users will add/edit/delete records in each of their own versions of the App/DataBase, XML files, representing changes, are created and upload to an ftp server.The corner I've painted myself into:When my Project Manager downloads these XML files using his own version of the application, analyzes each reported item, confirms and updates his version what is the best way to propagate those updates back to each user without having to update the project db and publish again?

View 4 Replies

Deployment :: ClickOnce App Not Update If Passed Command Line Arguments

Jul 9, 2009

I have a ClickOnce application deployed to many workstations in my office. On it's first run it adds a registry key to the HKCU run group that adds itself with a "-minimize" argument. On each login the program starts and seeing the command line argument minimizes itself. However when a update is published the program does not update. If the program is run from its menu shortcut without arguments it runs fine. I then looked up how to update programmaticaly and put that code into my program to run at startup.

But my.application.isnetworkdeployed returns False when command line arguments are passed to the app and TRUE when run without command line arguments even though in both cases it is network deployed. Since my program starts up with command line arguments and stays minimized while the computer is on there is no reason for a user to close the program and reopen it through a menu item but as of right now that's the only way the program updates. Is this a bug or how ClickOnce is supposed to work?

Example: Create a new program. On the form add a textbox. In the Form load event put something like:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
TextBox1.Text = My.Application.Info.DirectoryPath.ToString & "" & My.Application.Info.AssemblyName & ".exe"
MsgBox("Is my app network deployed?: " & My.Application.IsNetworkDeployed)
End Sub

Deploy the app. Start it with a menu item and it returns True. Start it with any command like argument (use the path from the box) and it returns false. Why? How is that possible? The app didn't magically become non network deployed because it was passed a command line argument.

View 1 Replies

Change The User Settings (*.config) File Location?

May 18, 2009

I am just not happy with the fact that the user.config file gtets saved in the user's account folder. Is there a way to save it in the Application's Startup Folder instead? I couldn't find any configuration properties within the PROJECT PROPERTIES which would let me change the file location.

View 2 Replies

2010 - Published A ClickOnce Deployment Package - Specialized Hebrew Font In The Application

Sep 29, 2011

I've developed a database application in VB.Net 2010 Express and published a ClickOnce deployment package, the only choice in the Express version. The installation is supposed to create a listing on the Start menu but this isn't happening. Also, I'm using a specialized Hebrew font in the application that is not carrying over to the installation. what I'm doing wrong or if the ClickOnce publishing method is not capable of working in this way?

View 2 Replies

My.Settings & Application.StartupPath - Allow The User To Be Able To Change The Location Of This Subfolder

Oct 23, 2011

I have an app that will need a file repository located in a subfolder in my program's directory. For example: c:program files (x86)myapplicationmyfiles But, I need to allow the user to be able to change the location of this subfolder if they wish to store them on a network drive etc..

[Code]...

View 4 Replies

Visual Studio 2008 - .Net Application Settings / ClickOnce?

Mar 15, 2010

VS 2008 / VB.Net / WinForms I have an application setting (Settings.settings) for a project and I am using Click Once deployment. I used the VS Editor to create the setting and I can see the setting in the app.config file

<applicationSettings>
<MyApp.Win.My.MySettings>
<setting name="MySetting" serializeAs="String">
<value>False</value>

[code]....

View 1 Replies

C# - "Value Does Not Fall In The Expected Range" ClickOnce Deployment

Mar 14, 2012

I've had a ClickOnce app in use for a few months now, but recently started getting an error on my deployment of the latest version. With this latest version I've added a reference to a DLL that I hadn't used before (FTD2XX_NET.dll if it's relevant), and suspect that this is related to the issue but I cannot figure out how to fix it.

The actual project being deployed references another library project, which is what references the DLL (it references other DLL's but that has worked for months and they haven't changed). Following these threads I've tried deleting my "Local Settings/Apps" folder and rebooting multiple times, as well as recreating the project and deploying to a different location. The error exists on multiple machines so I do not suspect it's user profile corruption. Here is the full error I'm given:

[Code]...

Edit: It seems the problem is spreading. On the second machine I purged all of the ClickOnce files in the "Local Settings/Apps" so I had to reinstall an old program. When I went to do so it gave me the same error. This program was last updated in February. In response I tried totally removing and reinstalling the .NET framework to no avail.

View 2 Replies

Deployment :: ClickOnce Publish: Publishing Folder Vs Installation Folder?

Oct 28, 2009

I have a question regarding publishing vis ClickOnce. For the publish options, there is a Publishing Folder Location and there is a Installation Folder URL. clarify the difference between Publish and Install, and when it would be apropriate for the two to be different?

View 3 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies

IDE :: Cannot Install Clickonce App On A User's Computer?

Apr 8, 2009

My clickonce app has the following pre-requisites: Windows Installer 3.1 .NET Framework 3.5 Microsoft Visual Studio 2008 Report Viewer Microsoft Visual Basic Power Packs 3.0 SQL Server 2005 Express Edition SP2 (x86) The application has been successfully installed on more than 30 computers. All but 2 computers, have had installation problems.

For awhile, one of the two computers in question, would not resolve installation of SQL server 2005 Express edition. It would go through the motions of downloading the program and then attempting an install and after a good 30 minutes, an error would show up indicating that the installation had failed. The user continued to have a nuisance error pop up appear when he'd log into his computer.Long story short, I resolved that problem. So now all of the pre-requisites are installed and confirmed as successfully installed. The clickonce application does not install however. The following log file was created as a result of this error:

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)

[Code]...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved