473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

appSettings and connectionStrings in CONFIG files v2.0

Hi!

I have a Web App developed for1.1. Now we migrated to 2.0. We have a base
library/dll used by few applications. When we started working with 2.0; we
started using the Middle-tier schema objects(rather strongly-typed objects
for the middle-tier) that .Net 2.0 allows to design using VS 2005 GUI
interface. I am refering to this blog post:
http://weblogs.asp.net/scottgu/archi...15/435498.aspx.

The only caveat is VS 2005 GUI interface forces you to store the connection
string under <connectionStrings> section of the Web.config file. Now to use
the old code (1.1version); we have to duplicate storing the connectionStrings
in 2 places in Web.config file:

1. the old way of storing it under <appSettings>.
2. The new way of storing it under <connectionStrings>.

This is not acceptable as we have to update the connectionStrings in
multiple places. I was wondering if there is a work-around for this problem.
May be i could have over-looked something. Any help to solve this problem is
really appreciated.

the connectionString semantics also have changed. Now with 2.0; you need to
specify the assemblyName which invalidates the connectionString in 1.1. In
2.0 they use the new ProviderModel for connection string and it requires that
u mention the assemblyName.

I remember reading lot of articles on how to secure ur connection strings in
MSDN for 1.1, like stroing them in registry, encrypting. Now they change the
API completely. It is ridiculous.

-Thanks
Chak.
Apr 21 '06 #1
0 1005

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Keith Chadwick | last post by:
I have 3 individual ASP.NET applications that make up the overall web application. Each of these websites share some common styles, scripts and xslt files. These are all placed in a single...
2
by: Kenneth | last post by:
Hi, In web.config I have an appsettings: <appSettings> <add key="constring" value="Server=localhost;UID=sa;PWD=secret;Database=myDB" /> </appSettings> This is for my developing machine.
3
by: Jeff Robichaud | last post by:
Hello, Since it is possible to put application settings in a file other than web.config, I was wondering what is the best practice in doing so vs. putting these settings directly in web.config....
6
by: Shawn Wildermuth | last post by:
I have a web project whose web.config has a ConnectionString setup. I have a second assembly with my Typed DataSets. The designer has created an App.config file with a connection string in it for...
3
by: Vijayata | last post by:
Hi, Can anyone help me for how to access connection string defines in App.config file in an Windows form application. I`m doing project in C#.NET and SQL Server2000. So you are also pleased to...
7
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for...
1
by: Sergei Shelukhin | last post by:
Hi. Is is possible to divide appSetting in two, having some values stored in web.config itself and some in a section referenced in appSettings file="...." attribute?
3
by: Mark Rae | last post by:
Hi, Apologies if this is a stupid question, but it's late... I have a C# 2 WinForms project called RTES, and I'm trying to add new key/value pairs to the appSettings section of its config...
5
by: Osamede Zhang | last post by:
I just can't understand what appSettings means, how it work thanks for your read osamede
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.