title: System.Data.SqlClient.SqlException: Invalid object name 'dbo.Projects'
body: <p>My MVC app is returning SqlExceptions when trying to access any table in my database.</p>
  
  <p>Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'dbo.Projects'.</p>
  
  <p>My app us linq for the data layer.</p>
  
  <p>If I use an old dll it works fine, (so doesn't seem to be a problem with the DB) just this latest app dll that I've uploaded.</p>
  
  <p><strong>details</strong></p>
  
  <blockquote>
    <p>[SqlException (0x80131904): Invalid object name 'dbo.Projects'.]<br>
    System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
    Boolean breakConnection) +1950890<br>
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
    exception, Boolean breakConnection) +4846875<br>
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj) +194    System.Data.SqlClient.TdsParser.Run(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream,
    BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) +2392<br>
    System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33<br>
    System.Data.SqlClient.SqlDataReader.get_MetaData() +83<br>
    System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,
    RunBehavior runBehavior, String resetOptionsString) +297<br>
    System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
    async) +954<br>
    System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
    method, DbAsyncResult result) +162<br>
    System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
    method) +32<br>
    System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
    behavior, String method) +141<br>
    System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior
    behavior) +12    System.Data.Common.DbCommand.ExecuteReader() +12<br>
    System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query,
    QueryInfo queryInfo, IObjectReaderFactory factory, Object[]
    parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object
    lastResult) +975<br>
    System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query,
    QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[]
    userArguments, ICompiledSubQuery[] subQueries) +113<br>
    System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression
    query) +344<br>
    System.Data.Linq.DataQuery<code>1.System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator()
    +35    System.Linq.Buffer</code>1..ctor(IEnumerable<code>1 source) +247    System.Linq.&lt;GetEnumerator&gt;d__0.MoveNext() +108<br>
    System.Linq.Buffer</code>1..ctor(IEnumerable<code>1 source) +259<br>
    System.Linq.&lt;GetEnumerator&gt;d__0.MoveNext() +108<br>
    System.Collections.Generic.List</code>1..ctor(IEnumerable<code>1 collection)
    +7665172    System.Linq.Enumerable.ToList(IEnumerable</code>1 source) +61    Mezza_crm.Controllers.ProjectsController.GetProjectList(NameValueCollection form) in C:\mezza_crm\mezza_crm\Controllers\ProjectsController.cs:164 
    Mezza_crm.Controllers.ProjectsController.List() in
    C:\mezza_crm\mezza_crm\Controllers\ProjectsController.cs:53<br>
    lambda_method(ExecutionScope , ControllerBase , Object[] ) +39<br>
    System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase
    controller, Object[] parameters) +17<br>
    System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext
    controllerContext, IDictionary<code>2 parameters) +178<br>
    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext
    controllerContext, ActionDescriptor actionDescriptor, IDictionary</code>2
    parameters) +24<br>
    System.Web.Mvc.&lt;>c__DisplayClassa.b__7()
    +52    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter
    filter, ActionExecutingContext preContext, Func<code>1 continuation) +254<br>
    System.Web.Mvc.&lt;&gt;c__DisplayClassc.&lt;InvokeActionMethodWithFilters&gt;b__9()
    +19    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext
    controllerContext, IList</code>1 filters, ActionDescriptor actionDescriptor,
    IDictionary`2 parameters) +192<br>
    System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext
    controllerContext, String actionName) +399<br>
    System.Web.Mvc.Controller.ExecuteCore() +126<br>
    System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
    +27    System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext
    requestContext) +7<br>
    System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext)
    +151    System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57<br>
    System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext
    httpContext) +7<br>
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +181    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75</p>
  </blockquote>