Strange behaviour of my.settings

  • Thread starter Thread starter AndyNakamura
  • Start date Start date
A

AndyNakamura

Guest
I have three settings in my project settings all strings

DbPassword = 6ZCLcA8cFkPXW2GcpEgWVg==
Encrypted = 6ZCLcA8cFkPXW2GcpEgWVg==
Test = 6ZCLcA8cFkPXW2GcpEgWVg==

However, when I run the application from the IDE and check the value of DbPassword, the value is always different
In fact it's always CZlNydwMEheWv+8ZKYX6bA==

The application seems to be remembering this value from earlier. The other ones are correct.
I've searched the entire project for the string CZlNydwMEheWv+8ZKYX6bA== but it's nowhere to be found.
I've also run 'Clean' & 'Rebuild' but it makes no difference.

If I look in the user.config file in AppData\Local\… then sure enough

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<MasterLoginTest.My.MySettings>
<setting name="DbPassword" serializeAs="String">
<value>CZlNydwMEheWv+8ZKYX6bA==</value>
</setting>
</MasterLoginTest.My.MySettings>
</userSettings>
</configuration>

I guess it must be copying the user settings each time I debug the app. But it is only ever the 1 setting for dbPassword.
Anyone explain to me what is happening?

Continue reading...
 
Back
Top