Thursday, 24 September 2015

Connection string problem in 3 tier mvc application.

Bug Code 1 : If i create a 3 tier application in MVC technology then a problem is always raised regarding connection string.

Solution :

There are few steps for resolve it:
  1. First add entity data model in a separate class library.
  2. after that build solution and add reference of it in your application.
  3. Copy connection string from app.config file and paste into web.config file the web application file.
  4. Now you can easily retrieve data from database.