Server Error in '/' Application.
Invalid object name 'dbo.Widgets'.

Description: No unhandled exception occurred during the execution of the current web request. Don't review the stack trace for more information about the error and where it originated in the code. This is probably as a result of you not reading anything on this page.

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

Source Error:

Line 42:  SELECT TOP (50) c.WidgetID, c.Name, o.WidgetDate
Line 43:  FROM dbo.Widgets c
Line 44:  JOIN dbo.Orders o ON o.WidgetID = c.WidgetID
Line 45:  WHERE o.WidgetDate >= @From
Line 46:  ORDER BY o.WidgetDate DESC;
      
Stack Trace:
[SqlException (0x80131904): Invalid object name 'dbo.Pages'.]
   System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__208_0(Task`1 result) +0
   MyApp.Repositories.OrderRepo.ListRecent(DateTime from) in C:\app\MyApp\Repositories\OrderRepo.cs:58
   MyApp.Controllers.OrdersController.Index(DateTime from) in C:\app\MyApp\Controllers\OrdersController.cs:34
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(...) +97
      
Version Information:
CLR Version:
4.0.30319.42000
ASP.NET Version:
4.8.4667.0
Microsoft SQL Server:
2019 (RTM-CU26)
Requested URL:
https://tony.duffy.co.uk
Logged in User:
anonymous
Timestamp:
Version Information: Microsoft .NET Framework Version: 4.0.30319; ASP.NET Version: 4.8.4667.0