I have created a windows form application which taking values from App config file. I wanted to make it, when after the build, I goes to the app config file and open it and change the value. Then program is taking that value. But sadly it isn't working . Can you tell me where I was wrong?
int EmId = Properties.Settings.Default.UserId; //taking the UserId value from Appconfig
bl_Static.empIDFixed = EmId; // assign it to the Static variable
this is the Appconfig code that I'm changing the "value"
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /></startup>
<userSettings>
<PopUpPAS.Properties.Settings>
<setting name="UserId" serializeAs="String">
<value>4</value>
</setting>
</PopUpPAS.Properties.Settings>
</userSettings>
<runtime>
When I do that change Externally ( Opening the app config file from note pad and change the value to another value) . It doesn't get the value.