my.settings.upgrade not working! VB.net
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts
Page 1 of 1
I'm trying to run the update settings taking them from the previous version of the program, the problem is that it does not work.
I have created a field "ser" which is set to true by default, so that every time an update is made the field "ser" becomes false, in particular:
I have created a field "ser" which is set to true by default, so that every time an update is made the field "ser" becomes false, in particular:
Code: Select all
This should work well, it must be said that this code is executed within the form load and not in a function, it is placed first. I read in the network that the cause of why not update, it could be that the settings are part of an other version and not a equal, consequently this conflict is created that does not allow the update. I wonder how I could resolve this situation as they are really in trouble. If My.Settings.ser = "True" Then
My.Settings.Upgrade ()
My.Settings.ser = False
My.Settings.Save ()
end If
I'm in the empire business.
You shouldn't need quote marks (") around True. Try,
Code: Select all
As long as that setting is a boolean.If My.Settings.ser = True Then
My.Settings.Upgrade ()
My.Settings.ser = False
My.Settings.Save ()
end If
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
First it was without the quotes, I thought that was not right and I added since so wrong. I saw that in appdata / local there are many folders of the same application with different settings, could this be the cause of the problem?
I'm in the empire business.
As long as the applications name and folder location on the computer remains the same you shouldn't have multiple appdata files....as far as I know :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
i have the folder (attach file).
I can not help but notice the presence of .exeUrl would be the downloaded application) and the other folder with .exeStrongName (the primary application that requires the upgrade).
I can not help but notice the presence of .exeUrl would be the downloaded application) and the other folder with .exeStrongName (the primary application that requires the upgrade).
You do not have the required permissions to view the files attached to this post.
I'm in the empire business.
Are you running this in debug mode? - if you are then that could be the issue.
Can you post your update code so I can have a look.
Can you post your update code so I can have a look.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
expects us not confuse the arguments lol, this is about the settings that are not updated from the previous version but does not affect the system update.
I'm in the empire business.
I run remote assistance with my client and in addition to solving the problem of the update that was not executed, the old settings were read, probably you're right with the fact that debug mode can not test such a thing. I'll do more testing and I'll tell you how it goes.
I'm in the empire business.
very strange to some people it works and others do not, there is probably something wrong, I'd love to work with you to develop a system of activation without problems.
I'm in the empire business.
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023