473,385 Members | 1,445 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.

The connections in web.config and app.config

ad
When I add a connection string by wizard in a WebApp , the wizard add the
connection string to web.config like
<add name="MyDataBase" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=xxxx;.....

But if I add the same connection string by wizard in a class library
project, the connection string in app.config will be:
<add name="dataHealth.Properties.Settings.MyDataBase"
connectionString="Data Source=.\SLEEPERS;Initial Catalog=xxxx...

The connection string name in app.config will be initial with
"ProjectName.Properties.Settings"
Why have the difference between web.config and app.config
Mar 28 '06 #1
0 1710

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

Similar topics

2
by: juli | last post by:
Hello ppl! How exactly do I close all the database connections that was open in the config file and how do I use the destructor in C#. Thanks a lot!
3
by: Raghu Rudra | last post by:
By default, the machine.config contains following information: <system.net> ....... <connectionManagement> <add address="*" maxconnection="2"/> </connectionManagement> </system.net> This...
4
by: Matt Anderson | last post by:
When I use Xcopy to deploy my changes to IIS, it seems to drop the user connections; i.e., empties out their Session variables, etc. I thought ASP.NET was supposed to use shadow deployment and...
4
by: STom | last post by:
We have the following settings in our web.config file to store session state on the SQL Server. <sessionState mode="SQLServer" sqlConnectionString="data source=h7sql;Integrated Security=SSPI"...
4
by: WebBuilder451 | last post by:
I have a project that i built using vs.net. The database connections were created using drag and drop. Rather than deleting the connections and re-creating the connections to the production server...
6
by: Fredrik Arenhag | last post by:
Hi! I'm in the process of developing an application for downloading files from a webserver. This is done in a threaded manner, but how hard I ever try I can't seem to manage to get more than 2...
4
by: Sierra | last post by:
Problem: Database connections are not being reused properly. SP_WHO2 shows upwards of 200 connections being created per page request. Most connections exist for 60 seconds then close without...
4
by: VB Programmer | last post by:
I have an ASP.NET 2.0 site i'm creating in VS.NET. I left it a few days ago, after I had implemented membership, worked on some db tables, etc... Today I go to open the Data Connection to the...
0
by: toanv | last post by:
Hey All, Hoping you might be able to shed some light for me here. I've just been handed this project/website thats supposed to connect to an oracle database. Everything connects, works fine,...
3
by: Girish | last post by:
I have two application running in one server, both have same sqlserver connection strings in their web.config files. i want to combine both connection strings in one config file. please suggest...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.