In debug mode I have been using:
ConnectionString = Properties.Settings.Default.SomeConnectionString
to retrieve my connection string. However, this same code does not give me the connection string when running in release mode.
Note: SomeConnectionString is a connection string in a local Settings.settings file.
How can I use the same code above regardless of debug/release mode?
Thanks!
Instead of using a Properties file to store the connection string, you should store the connection string in app.config if you can’t get access to the connection string in the web.config.