System.Data.DataException: An exception occured while initializing the database
问题 Please help me on this. I have written a code for getting the first record from the database using LINQ My Homecontroler [CustomHandleError] public class HomeController : Controller { Domain domain; public HomeController() { domain = new Domain(); } public ActionResult Index() { HomePageViewModel vm = new HomePageViewModel(); vm.Page = domain.GetHomePageInfo(); if (vm.Page != null) { ViewBag.Title = vm.Page.PageTitle; ViewBag.Keywords = vm.Page.PageKeywords; ViewBag.Description = vm.Page