我刚刚在Orchard中安装了一个新模块来更新电子邮件模块,因为我的电子邮件不起作用。但是,当我尝试进入站点的Admin部分时,我立即执行此操作时出现运行时错误。有谁知道为什么会发生这种情况,或者我可以做些什么才能回到上一点?在管理员模式无效的情况下,我现在无法对网站执行任何操作。
无效的对象名称' Orchard_Email_SmtpSettingsPartRecord'。 声明无法准备。
描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.Data.SqlClient.SqlException:无效的对象名称' Orchard_Email_SmtpSettingsPartRecord'。 声明无法准备。
来源错误:
生成此未处理异常的源代码只能是 在调试模式下编译时显示。要启用此功能,请关注一个 以下步骤,然后请求URL:
- 醇>
添加" Debug = true"生成错误的文件顶部的指令。例如:
或:
2)将以下部分添加到您的配置文件中 应用程序:
请注意,第二种技术会导致给定的所有文件 应用程序以调试模式编译。第一种技术会 导致只在调试模式下编译该特定文件。
重要说明:在调试模式下运行应用程序确实会产生问题 内存/性能开销。你应该确保一个应用程序 在部署到生产方案之前已禁用调试。
堆栈追踪:
[SqlException(0x80131904):无效的对象名称 ' Orchard_Email_SmtpSettingsPartRecord&#39 ;.声明不可能 准备好了。] System.Data.SqlClient.SqlConnection.OnError(SqlException exception,Boolean breakConnection,Action
1 wrapCloseInAction) +1767866 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 wrapCloseInAction) +5352418 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj,Boolean callerHasConnectionLock,Boolean asyncClose)+244
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler,SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj,布尔& dataReady)+1691
System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()+61
System.Data.SqlClient.SqlDataReader.get_MetaData()+90
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior,String resetOptionsString)+365
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(的CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,Boolean async,Int32超时,任务& task,Boolean asyncWrite,SqlDataReader ds)+1406
System.Data.SqlClient.SqlCommand.RunExecuteReader(的CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String 方法,TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
1.b__a() in:0
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure.<>c__DisplayClassc
Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction(Func键1 func) in :0
1.b__9() in:0
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure.<>c__DisplayClassc
。Microsoft.Practices.TransientFaultHandling&LT;&GT; c__DisplayClass1.b__0() in:0
Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction(Func`1 func)in:0
Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction(动作 行动)in:0
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure.ReliableSqlConnection.ExecuteCommand(IDbCommand的 命令,RetryPolicy retryPolicy,CommandBehavior behavior)in:0
NHibernate.SqlAzure.ReliableSqlCommand.ExecuteReader()in C:\ TeamCity的\ buildAgent \工作\ 99f31db0d548c7b7 \ NHibernate.SqlAzure \ ReliableSqlCommand.cs:85 NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\ ADONET \ AbstractBatcher.cs:229 NHibernate.Loader.Loader.GetResultSet(IDbCommand st,Boolean autoDiscoverTypes,布尔可调用,RowSelection选择, ISessionImplementor会话)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\ Loader.cs:1224
NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters,Boolean returnProxies)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\ Loader.cs:419
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session,QueryParameters queryParameters,Boolean returnProxies)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\ Loader.cs:251
NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id,IType identifierType,Object optionalObject,String optionalEntityName,Object optionalIdentifier,IEntityPersister pers:)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核\ SRC \ NHibernate的\装载机\ Loader.cs:1279[GenericADOException:无法加载实体: [Orchard.Email.Models.SmtpSettingsPartRecord#1] [SQL:SELECT smtpsettin0_.Id为Id61_0_,smtpsettin0_ .Address为Address61_0_, smtpsettin0_.Host为Host61_0_,smtpsettin0_.Port为Port61_0_, smtpsettin0_.EnableSsl为EnableSsl61_0_, smtpsettin0_.RequireCredentials为RequireC6_61_0_, smtpsettin0_.UserName as UserName61_0_,smtpsettin0_.Password as Password61_0_ FROM Orchard_Email_SmtpSettingsPartRecord smtpsettin0_ 在哪里smtpsettin0_.Id =?]]
NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id,IType identifierType,Object optionalObject,String optionalEntityName,Object optionalIdentifier,IEntityPersister pers:)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\ Loader.cs:1287
NHibernate.Loader.Entity.AbstractEntityLoader.Load(ISessionImplementor session,Object id,Object optionalObject,Object optionalId)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\实体\ AbstractEntityLoader.cs:44 NHibernate.Loader.Entity.AbstractEntityLoader.Load(Object id,Object 的OptionalObject,ISessionImplementor session) C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\装载机\实体\ AbstractEntityLoader.cs:39 NHibernate.Persister.Entity.AbstractEntityPersister.Load(Object id, Object optionalObject,LockMode lockMode,ISessionImplementor session) 在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\留存\实体\ AbstractEntityPersister.cs:3483 NHibernate.Event.Default.DefaultLoadEventListener.LoadFromDatasource(比如LoadEvent event,IEntityPersister persister,EntityKey keyToLoad,LoadType 选项)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\事件\ DEFAULT \ DefaultLoadEventListener.cs:348 NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(比如LoadEvent event,IEntityPersister persister,EntityKey keyToLoad,LoadType 选项)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\事件\ DEFAULT \ DefaultLoadEventListener.cs:329 NHibernate.Event.Default.DefaultLoadEventListener.Load(比如LoadEvent event,IEntityPersister persister,EntityKey keyToLoad,LoadType 选项)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\事件\ DEFAULT \ DefaultLoadEventListener.cs:110 NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(比如LoadEvent event,IEntityPersister persister,EntityKey keyToLoad,LoadType 选项)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\事件\ DEFAULT \ DefaultLoadEventListener.cs:166 Orchard.Data.Providers.OrchardLoadEventListener.OnLoad(比如LoadEvent event,LoadType loadType)in C:\果园\ SRC \果园\数据\提供商\ AbstractDataServicesProvider.cs:156 NHibernate.Impl.SessionImpl.FireLoad(LoadEvent事件,LoadType loadType)在c:\ Users \ sebros \ Documents \ My中 项目\ NHibernate的核心的\ src \ NHibernate的\默认地将Impl \ SessionImpl.cs:2529
NHibernate.Impl.SessionImpl.Get(String entityName,Object id)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\默认地将Impl \ SessionImpl.cs:1366
NHibernate.Impl.SessionImpl.Get(在中输入entityClass,Object id) C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\默认地将Impl \ SessionImpl.cs:1303
NHibernate.Impl.SessionImpl.Get(Object id)in C:\用户\ sebros \ Documents \我 项目\ NHibernate的核心的\ src \ NHibernate的\默认地将Impl \ SessionImpl.cs:1287
Orchard.Data.Repository1.Get(Int32 id) in c:\Orchard\src\Orchard\Data\Repository.cs:87
1.Orchard.Data.IRepository.Get(Int32 id)in C:\果园\ SRC \果园\数据\ Repository.cs:56
Orchard.Data.Repository
Orchard.ContentManagement.Handlers.StorageFilter1.GetRecordCore(ContentItemVersionRecord versionRecord) in c:\Orchard\src\Orchard\ContentManagement\Handlers\StorageFilter.cs:30 Orchard.ContentManagement.Handlers.<>c__DisplayClass1.<Loading>b__0(TRecord prior) in c:\Orchard\src\Orchard\ContentManagement\Handlers\StorageFilter.cs:54 Orchard.ContentManagement.Utilities.LazyField
1.GetValue()in C:\果园\ SRC \果园\内容管理\公用事业\ LazyField.cs:24
Orchard.Email.Models.SmtpSettingsPart.IsValid()+15
Orchard.Email.Services.d__1.MoveNext()+101
System.Linq.d__142.MoveNext() +293
1..ctor(IEnumerable
System.Collections.Generic.List1 collection) +381 System.Linq.Enumerable.ToList(IEnumerable
1来源)+58
Orchard.UI.Admin.Notification.NotificationManager.GetNotifications() 在 C:\果园\ SRC \果园\ UI \管理员\通知\ NotificationManager.cs:20 Orchard.UI.Admin.Notification.AdminNotificationFilter.OnResultExecuting(ResultExecutingContext filterContext)in C:\果园\ SRC \果园\ UI \管理员\通知\ NotificationFilter.cs:35 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList的1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +163
1 filters,Int32 filterIndex,ResultExecutingContext preContext, ControllerContext controllerContext,ActionResult actionResult)+420
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList的1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
1 filters,Int32 filterIndex,ResultExecutingContext preContext, ControllerContext controllerContext,ActionResult actionResult)+420
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList的1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
1 filters,Int32 filterIndex,ResultExecutingContext preContext, ControllerContext controllerContext,ActionResult actionResult)+420
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext,IList1 filters, ActionResult actionResult) +52
1.CallEndDelegate(IAsyncResult asyncResult)+10
System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
System.Web.Mvc.Async.WrappedAsyncResult
System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
1.CallEndDelegate(IAsyncResult的 asyncResult)+36
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
System.Web.Mvc.Async.WrappedAsyncVoid
System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +54
1.CallEndDelegate(IAsyncResult的 asyncResult)+28
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +41 System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
System.Web.Mvc.Async.WrappedAsyncVoid
System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +54
1.CallEndDelegate(IAsyncResult的 asyncResult)+36
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +31
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
System.Web.Mvc.Async.WrappedAsyncVoid
System.Web.Mvc.Async.WrappedAsyncResultBase`1.End()+54
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult) 结果)+9
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult的 结果)在c:\ Orchard \ src \ Orchard \ Mvc \ Routes \ ShellRoute.cs:159
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9515512 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean&amp; completedSynchronously)+155