I am getti Invalid object name 'dbo.CustomerTBLs'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'dbo.CustomerTBLs'.

Source Error:

Line 19: public ActionResult Index()
Line 20: {
Line 21: return View(db.CustomerTBLs.ToList());
Line 22: }
Line 23:

Source File: c:\Webs\MVCStoreProcedure\MVCStoreProcedure\Controllers\CustomerController.cs Line: 21 ng run time error while MVC small programm

Invalid object name 'dbo.CustomerTBLs'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'dbo.CustomerTBLs'.

Source Error:

Line 19: public ActionResult Index()
Line 20: {
Line 21: return View(db.CustomerTBLs.ToList());
Line 22: }
Line 23:

Source File: c:\Webs\MVCStoreProcedure\MVCStoreProcedure\Controllers\CustomerController.cs Line: 21

It's basically telling you CustomerTBLs does not exist under the dbo schema. My first step would be to carefully check spelling.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.