If you having multiple project in your solution, and say the startup project is webapplication and you having the below code
<connectionstring>
<add name="" mode="hold" /></connectionstring>
in Data Access Layer (DAL)[class library project] configuration file means that doesn't make any sense you have to add that in startup project say here as webapplication's web.config file.