- I have created a dll.
- I have added a entity model in to above dll.
- Connection string generated in appconfig of dll for entity model.
- Then created new project in solution which is web application.
- Add a reference of dll in web application.
- Add a new webpage in web app and call a entity model to get data from DB.
- I found error no connection string found.
- When I copy connection string from appconfig of DLL in to wecbconfig of webapplication then error is removed.
I just want to know why I need to copy connection string in to web config whereas I have already added a reference of dll in web project.

Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 24, 2017, 3:52 AM EDT
MayankRank #4,018 · 371 reputationPosted Mar 24, 2017, 3:59 AM EDT