0

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

2
Contributors
1
Reply
10
Views
3 Years
Discussion Span
Last Post by deceptikon
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.