VS 2008 - Updating EXE And Manifest Clears User Settings

Jan 3, 2011

I've got a VB .NET application that has an auto-updater that updates the exe and manifest files of the application when it finds a new version. For some reason when I update those 2 files, it also clears the user settings, even though Im not replacing the exe.config file.

View 5 Replies


ADVERTISEMENT

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

Error Embedding Win32 Manifest: Manifest File 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727default.win32manifest' Cannot Be Found

Jul 30, 2009

Error embedding Win32 manifest: Manifest File 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727default.win32manifest' cannot be found.

Received with this code:

Public
Class HelloWorld
Private Sub DisplayHello_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DisplayHello.Click
HelloWorldLabel.Text =

[code]....

View 2 Replies

Asp.net - Response.Write() In Umbraco User Control Clears All Page Content?

Feb 14, 2012

I'm using the following code to add a table to a user control in Umbraco.

Try
Dim DS As DataSet = GetData()
If DS.Tables(0).Rows.Count > 0 Then

[Code]....

But what happens after the loop completes (without errors - I've stepped through the whole thing), the only content left on the page is the table.

View 1 Replies

VS 2008 User Settings Saving?

Dec 12, 2009

Okay so i have a problem with saving the users settings. Okay i have about 50 check boxes on my frm1.So for example if the user clicks on check boxes 1 and 2 the next time when the user starts the program i want check box 1 and 2 to be checked

[Code]...

View 15 Replies

VS 2008 User Updating Application Files?

Apr 26, 2011

way to update my application executable, and a few other application files for a simple application updater that I am using in my application. The code updates the files (including the executable, manifest, and a few other files), but on Windows Vista and Windows 7 machines you must run the application as Administrator in order for it to update the files in the application folder.

View 2 Replies

VS 2008 - My.Settings - If When The User Selects No, Then The App Setting Is Nothing

Dec 6, 2011

I am not sure what the heck I am doing wrong. I would like if when the user selects no, then the app setting is nothing. By nothing I mean nothing, I am using "Nothing" to test but its not working it returns whatever is in the richtextbox

This is in my formclosing event

Dim msg As String = "Do you want to save your comments?"
MessageBox.Show(msg, "Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If DialogResult = Windows.Forms.DialogResult.Yes Then

[CODE]...

View 2 Replies

VS 2008 Saving And Reading User Settings?

Feb 16, 2010

I need to save some string settings at runtime and read them back. They will need to be changed at anytime during runtime also. The examples I have found says they are obsolete for vs2008. how to save and read some string settings? I found alot for the application settings that to me are ones you set once for the app like in an asp.net site. I need to change these anytime like you would in a registry.

View 10 Replies

VS 2008 User Settings Mystery With VB6 Com Interop?

Oct 14, 2010

This problem has frustrated me to the extent that I am now willing to make a one-time donation of GBP25 to the nominated charity of the person who provides what I consider to be the most helpful answer over the next 24 hours.

Let us say I have a VB 6 SP6 Standard EXE project called VB6EXE.vbp and I am working on this in the VB 6 design-time IDE.VB6EXE.vbp references a compiled VB 6 SP6 DLL project, let us call that VB6DLL.dll VB6DLL.dll references a .tlb which references a compiled VB 2008 library assembly, let's call that VB2008.dll So in abstract terms the arrangement looks something like this:

[Code]...

View 16 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

VS 2008 RichTextBox Clears Formatting When Changing Font?

Nov 25, 2009

I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone know of a why to preserve the color table and formatting when changing the font? I know I could build the RTF manually, but I really want to avoid that if possible.

View 2 Replies

VS 2008 Create Settings (user.config File) On App First Run?

Jul 16, 2009

I know that when using my.settings that when I exit my app that it saves them and then next reload it imports my.settings back.

My question, is there a way to create this user.config file on the apps first load?

View 3 Replies

VS 2008 System.IO.File.WriteAllText Clears The Old Text And Writes New One

Dec 10, 2009

[Code]...

Basically when I open test123.txt it should countain "Hello World" but not really, only " World" is there.

View 4 Replies

VS 2008 No User Settings When App Starts At Windows Start Using Run Key In Registry?

Aug 10, 2010

I know similar questions have been asked/answered, but after looking across the net for 2 days I still haven't really seen an answer to the following question.rst, background info: My application starts at windows start as a user checkbox option (by using the run key in the registry.) I don't know if it is usual or not, but when the app auto starts on windows start, no saved user settings show up on the form (but they do when starting the program manually after windows is already running). I've tried both HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. In case anyone needs or wants it, my code for accessing the registry is:

Dim Reg As Object
Reg = CreateObject("Wscript.shell")
Reg.RegWrite("HKEY_CURRENT_USERSOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN" &

[code].....

View 4 Replies

VS 2008 Textbox Refers User Specified Path - Retrieving Settings?

Jan 3, 2011

I have a textbox in my program which refers to the user specified path. Everytime the program is started it retrieve the setting :
Private Sub frmmain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If My.Settings.path <> "" And My.Computer.FileSystem.DirectoryExists(My.Settings.path) = True Then
txtpath.Text = My.Settings.path
ElseIf My.Settings.path = "" Then
When I try the program on my own system there is no problem. But the customers said that everytime they start the program the messagebox popups and they have to choose the path again and again.

View 3 Replies

Updating A Data User 2008 And Sql Server Management Studio Express

Apr 19, 2011

I'm trying to update a data user using vb.net2008 and sql server management studio express for my backend. the error says "must declare the scalar variable "@username"

Here's the code .

Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles btnupdate.Click
Dim connstring = New SqlClient.SqlConnection("Data Source=MISD-

[CODE]...

View 1 Replies

VS 2008 Handle Saving User Control Settings On Form Close?

Dec 27, 2009

What is the correct way to handle saving user control settings on form close. I have a tabcontrol that a user can add tabpages during runtime. The user control has a few controls (listbox,combobox,textbox) How can I save the created tabpages and the data in each control in the usercontrol? Below is how I am calling my usercontrol

Code
Public Class TabPageEx
Inherits System.Windows.Forms.TabPage

[code]....

I seem to be a little lost as most documentation seems to suggest that I can not save usercontrol settings in the app.config. I have played around with the solution expl. settings tab without much success. But, then again I may be going about it all wrong. So, I am looking for a little direction on the best way to handle this on form close.

View 4 Replies

Settings Updating When Combobox Is Filled?

Jun 11, 2010

My.Settings.Current_DB is bound to 'cbdatabase' which is a combobox which is filled by this method:

me.cbdatabase.datasource = (From foulder in New IO.DirectoryInfo("" & Application.StartUpPath & "Database").GetDirectories Select (folder.Name)).ToArray I am using the My.Settings.Current_DB to keep track of the current database being used by the client. So that throughout the program and when the program starts up it knows what the current database is.

The databases and the folders have the same name, in order to keep track of. My problem is when the combobox is filled when the program starts, it is overwriting the current info with the first item of the info loaded into the combo box.

[Code]...

Instead of maintaining the Current_DB as "Default", it updates it with the first item into the Combobox and that is "Alabama". How do I fix this so that it maintains the correct Current_DB and not update when the Combobox is filled.

View 3 Replies

Reset User Settings In My.Settings?

Jun 29, 2010

how to reset user settings in My.Settings to the default value, because when i checked if the user settings works i have altered the settings so now i want the settings to go back to default, because i am going to distribute the software.

View 1 Replies

Save User Settings Using My.Settings?

Jun 8, 2010

how i can save user settings in vb.net

i have a project with different buttons when a user clicks a button the image of PictureBox1 will change.

i want to save this image that the user has chosen after he closes the application, so it will be displayed in PictureBox1 when loaded.

i am using Microsoft Visual Basic 2010 Express

the languge is VB

View 5 Replies

DB Synchronisation Behavior - Can A User Read The Entry While Other User Is Updating That On Exact Same Time

Jul 25, 2011

I have a oracle database. I use the OracleDataAdapter(Oracle.DataAccess.dll) for select, update, insert, delete operations. I don't set any (table) locks on my own(I only start a transaction). I have a oracle table named "test" with the entry "test1".

Now my question: Can Person A read the entry "test1" while Person B is updating/deleting the entry at the exact same time? What happens in the worst case? An old match/empty match or can it cause any kind of exception/error(e.g. "TableLocked-Exception")?

View 1 Replies

Multi-user Application - Updating All Clients When A User Updates Data (push Vs Pull)?

Aug 26, 2009

I am designing a fairly small application to manage a waiting area for a clinical department. There will be a receptionist who books appointments and updates exisiting appointments to say that a patient has "Arrived". In seperate rooms will be nurses who call patients who have "Arrived" and update the appointment as "In Session" and finally as "Discharged". The appointments are viewed in a flexgrid with nurses across the top and time down the left, patient names are displayed at the relevant times and the cells are shaded a colour to represent the current appointment status ("Booked", "Arrived", "In Session" and "Discharged").

I am using SQL Server as the back-end and Visual Basic 6 (I know) as my front-end.I have been told that there will be 2 or 3 nurses plus the receptionist logged in to the system but I would like to cater for growth.My question is what is the best mechanism to use in order to reflect the status change made by one user on the screens of the other users currently logged in?

I have been thinking about using a timer to refresh the data at a set interval but I do not want to keep hitting the server excessively (although what is considered excessive? we would be talking about a call for data every 60 secs per user). Plus the server could be serving data for many other applications so this is another consideration.Alternatively I have been thinking about sending some kind of message via Winsock to the other users notifying them of data changes as they happen. I don't have a lot of experience with this and am concerned about clients not receiving messages and users seeing old data. It also seems strange to me that once the days appointments have been retrieved from the database that "in theory" a client could go the whole day without having to query the database again to pick up changes - kind of scary.Some information on the data:We would probably be looking at around 100 appointments per day We capture patient name, date of birth, date and time of appointment and appointment status.What is the standard approach / best practice for this kind of scenario?

View 6 Replies

Save Application Settings But For USER But Cannot Find The User.config File

Aug 7, 2009

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file

when does this file get created?

i searched my entire hardrive. i also searched the entire project.

View 2 Replies

Application For User - Run As The User And Preserve Individual Settings

Jun 5, 2010

I am attempting to create an application in an attempt so it could be run as the user and preserve individual settings, by this what i am trying to achieve is when the application is installed, it is installed once but each user has their own settings saved within their own profile - a bit like Office applications. How could i start with this?

View 8 Replies

Save A Collection Of Key/value Settings In My Application's "user Settings"?

Apr 14, 2008

I'm trying to save a collection of key/value settings in my application's "user settings" (they're column widths), but while I see no errors, when I run the code (in the IDE) my collection in "My.Settings" is always nothing at startup. I do a "My.Settings.Save" when the application exits, and barring the "serializers not found" errors in the IDE, no other errors occur. When I run my application as an exe, it behaves the same way..

View 7 Replies

VS 2008 - My.Settings File - Specify The Location For User.config File

Jan 3, 2010

I'm looking for a way to specify the location for the User.config file that is used for storing the My.Settings object. It appears that this is not possible. The problem for me is, I don't want to be responsible for creating several different files on the users computer that really have no use and are difficult to find and clean once an update is released. For most users, this is not a serious problem, as many will probably never update the software, and most will probably only go through a couple of updates. On my system, there are config files for every build of the application, and the same to a lesser extent will be true for my beta testers.

I can understand that MS wants to make sure that no two applications will use the same location for storing application data, but a simple [UserData] [CompanyName][ApplicationName] for storing application data will probably suffice for 99.9999 percent of the legitimate applications in the world. Bogging a user's system down with erroneous files, no matter how small, is an unnecessary drain on system resources and a potential source of problems for the user. It's bad enough that most programs leave bits and pieces of themselves all over a user's system after De-installation - this to me seems only to exaggerate this problem.

Is the only way to get around this problem to write a whole new Settings Class? Is there a way to change the location of the UserConfig file to a more friendly (and more predictable) location that I am not finding for myself? It would seem that having at least the OPTION to specify a location for the User.Config file would be OBVIOUS and easy to implement, so why did they leave this out?

View 5 Replies

VS 2008 Settings Are Read From App.config Instead Of Settings-file

Oct 30, 2009

I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.

View 4 Replies

VS 2008 Using 'Settings File' (Settings1.settings)

Aug 5, 2009

I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?

View 2 Replies

Clears All Items In The List Box?

Mar 29, 2009

I am trying to write codes to clears all items in the list box. I try doing this with these codes:

Dim index As Integer
For index = 0 To lbxOrder.Items.Count - 1
lbxOrder.Items.RemoveAt(index)
Next

But I keep getting error: InvalidArgument=Value of '1' is not valid for 'index'.

View 8 Replies

Clicking On Any Day Clears Selection

Jan 7, 2010

Clicking on any day clears the selections. This bug is repoducable by simply opening a new WindowsForms project, dropping a MonthCalendar control onto its' surface. Click on the TitleBackground, click on a month, Jan thru Dec, and the bug will become self-evident. There may be another bug, if you click on either the Next or Previous month buttons, the selections will shift to the first week of the month. Finally, the Today key at the bottom of the calendar doesn't fully highlight. I am currently using Windows Vista, I will try to repo this on XP as soon as I can.

View 4 Replies







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