내 데이터베이스의 테이블에 액세스하려고하면 내 MVC 앱에서 SqlExceptions를 반환합니다.System.Data.SqlClient.SqlException : 잘못된 개체 이름 'dbo.Projects'
예외 정보 : System.Data.SqlClient.SqlException : 잘못된 개체 이름 'dbo.Projects'.
내 응용 프로그램 데이터 레이어의 linq.
이전 dll을 사용하면 제대로 작동하므로 (DB에 문제가있는 것 같지 않음) 업로드 한 최신 앱 DLL 만 있습니다.
상세
[SQLEXCEPTION (0x80131904) 잘못된 개체 이름 'dbo.Projects'.]
System.Data.SqlClient.SqlConnection.OnError (SQLEXCEPTION 예외 부울 breakConnection) 1,950,890
System.Data.SqlClient.SqlInternalConnection.OnError (SQLEXCEPTION 예외 부울 breakConnection) 4,846,875
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning (TdsParserStateObject,536,913,632 10 stateObj) 194 System.Data.SqlClient.TdsParser.Run (RunBehavior runBehavior, SqlCommand를 cmdHandler, SqlDataReader의 데이터 스트림, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) 2,392
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
System.Data.SqlClient.SqlDataReader.get_MetaData() 83
System.Data.SqlClient.SqlCommand.FinishExecuteReader (SqlDataReader 개체 DS, runBehavior runBehavior, 문자열 resetOptionsString) 297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds (CommandBehavior cmdBehavior, RunBehavior runBehavior, 부울 returnStream, 부울백45경1천5백15조5백36억9천1백36만3천2백10 비동기) 954
System.Data.SqlClient.SqlCommand.RunExecuteReader (CommandBehavior를 cmdBehavior, RunBehavior runBehavior 부울 returnStream 문자열 방법 DbAsyncResult 결과) 162
System.Data.SqlClient.SqlCommand.RunExecuteReader (CommandBehavior를 cmdBehavior, RunBehavior runBehavior, 부울 returnStream, 문자열 방법) +32
System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior를 행동, 문자열 방법) 141
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader (CommandBehavior를 행동) +12 System.Data.Common.DbCommand.ExecuteReader () +12은
System.Data.Linq.SqlClient.SqlProvider.Execute (표현 쿼리, QueryInfo queryInfo, IObjectReaderFactory 공장), [] userArgs, ICompiledSubQuery [] 하위 쿼리 객체, [] parentArgs 객체 LASTRESULT 객체 975
System.Data.Linq.SqlClient.SqlProvider.ExecuteAll 113
System.Data.Linq.SqlClient.SqlProvider (표현 쿼리, QueryInfo [] queryInfos, IObjectReaderFactory 공장, [] userArguments, ICompiledSubQuery [] 하위 쿼리 개체). System.Data.Linq.Provider.IProvider.Execute (식 쿼리) +344
System.Data.Linq.DataQuery1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +35 System.Linq.Buffer
1 .. ctor (IEnumerable1 source) +247 System.Linq.<GetEnumerator>d__0.MoveNext() +108
1.ctor (IEnumerable
System.Linq.Buffer1 source) +259
1 ..ctor에 (1 소스는 IEnumerable
System.Linq.<GetEnumerator>d__0.MoveNext() +108
System.Collections.Generic.List1 collection) +7665172 System.Linq.Enumerable.ToList(IEnumerable
) +61 Mezza_crm.Controllers.ProjectsController.GetProjectList (NameValueCollection은 형태)의 C : \ mezza_crm \ mezza_crm 컨트롤러 ProjectsController.cs를 \ : \ 164 Mezza_crm.Controllers.ProjectsController.List()를 C에 \ mezza_crm \ mezza_crm 컨트롤러 ProjectsController.cs \ \ : 53
lambda_method를 +17
([] 파라미터 객체 ControllerBase 제어기) +39
System.Web.Mvc.ActionMethodDispatcher.Execute을 (ExecutionScope는 ControllerBase는 개체 []) System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext 컨트롤러 컨텍스트, IDictionary 매개 변수) +24
System.Web.Mvc. <> c__DisplayClassa.b__7() +52 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (IActionFilter 필터 ActionExecutingContext preContext, Func을1 continuation) +254
1 개 필터 ActionDescriptor actionDescriptor, IDictionary`2 파라미터) 192
System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList
System.Web.Mvc .ControllerActionInvoker.InvokeAction (ControllerContext controllerContext, 문자열 actionName) 399
System.Web.Mvc.Controller.ExecuteCore() 126
System.Web.Mvc.ControllerBase.Execute (RequestContext requestContext) 27 System.Web .Mvc.ControllerBase.System.Web.Mvc.IController.Execute (RequestContext requestContext) +7 012 3, System.Web.Mvc.MvcHandler.ProcessRequest (HttpContextBase으로 HttpContext) 151 System.Web.Mvc.MvcHandler.ProcessRequest (HttpContext에있는 HttpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest (HttpContext를 으로 HttpContext) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 181 (IExecutionStep 단계, 부울 & completedSynchronously) +75
예 dbo.Projects가 존재하며 마지막 릴리스 이후 변경되지 않았습니다. 다른 테이블을 약간 변경하고 두 개의 테이블을 추가했습니다. 하지만 서버의 DB에 변경 사항을 미러링했습니다. 일반적으로 dev에 변경 사항을 적용하고 서버에서 변경 사항을 미러링하는 것을 잊어 버린 경우 이와 같은 메시지가 표시됩니다. System.Data.SqlClient.SqlException : 'Actual'열 이름이 잘못되었습니다. 하지만 일단 테이블을 수정하면 일반적으로 작동합니다. 신속한 답변을 보내 주셔서 감사합니다. –