I coded a Visual Basic application with a password stored in in the Application Settings.
Is it possible to read these settings outside the application, from the registry, from a .ini file or something?? Where is these settings stored?
Printable View
I coded a Visual Basic application with a password stored in in the Application Settings.
Is it possible to read these settings outside the application, from the registry, from a .ini file or something?? Where is these settings stored?
they are stored in a file... a text file.... in the same folder as your app. Design time it's called application.config..... at runtime, or rather after compiling, it's called {your app's exe name].exe.config.
And it's a plain jane xml file for all the world to read.
-tg
It is possible to encrypt all or part of a config file if it contains sensitive information. The .NET configuration classes handle the job of decrypting when reading and encrypting when writing without you lifting a finger. You just have to perform the initial encryption of the file. MSDN has the details.
All I found that was similar to my Application Settings was;
<userSettings>
<IMEICheckerSalg.My.MySettings>
<setting name="ConnectionString" serializeAs="String">
<value />
</setting>
</IMEICheckerSalg.My.MySettings>
</userSettings>
I have a Settings variable called ConnectionString, but it seems it's blank. Also I have 3-4 other variables stored in the application settings, but I can't find them.
My VB application reads out the settings from somewhere, but WHERE?
Hi,
I am Using Visual Basic 2005 Express Edition
Try to search at:
C:\Documents and Settings\Owner\Local Settings\Application Data\*.*
It must be there under your "Your Company Name".
I don't understand how to:
Can someone explain it to me?Quote:
It is possible to encrypt all or part of a config file if it contains sensitive information. The .NET configuration classes handle the job of decrypting when reading and encrypting when writing without you lifting a finger. You just have to perform the initial encryption of the file. MSDN has the details.
http://search.msdn.microsoft.com/sea...t+config+filesQuote:
Originally Posted by yulyos
On the US MSDN site that search will return what you need in the first two matches. It says for ASP.NET but the same principles can be applied to WinForms applications.
Hi,
I looked at the link:
http://search.msdn.microsoft.com/sea...t+config+files
and I don’t understand nothing.
My question is:
How can my program Encrypt and Decrypt and save my user.config settings file?
Thanks in advance
http://msdn2.microsoft.com/en-us/library/ms998283.aspx
From Step 3:So, you can use that commandline to encrypt a section named "connectionString" in a config file contained in a folder named "C:\Projects\MachineRSA".Quote:
use the–pef switch, which allows you to specify the physical directory location of your configuration file.
aspnet_regiis.exe -pef "connectionStrings" C:\Projects\MachineRSA
The section on Web Farms is analogous to a deployed WinForms application.
Hi,
Thanks for your help, but I give up.