Orchard.Alias.Implementation.Updater.AliasHolderUpdater - 别名刷新期间的异常

时间:2013-12-13 03:47:07

标签: nhibernate timeout orchardcms orchardcms-1.7

crosspost:https://orchard.codeplex.com/discussions/473454

我想首先说我正在从Orchard CMS 1.6迁移到1.7.2。所以它曾经在1.6中工作,但我现在遇到1.7.2的问题。

我的2种内容类型在创建项目时遇到问题,它们从未完成保存,当我检查日志时,我得到了这个:

Orchard.Alias.Implementation.Updater.AliasHolderUpdater - Exception during Alias refresh
NHibernate.Exceptions.GenericADOException: could not execute query
[ select aliasrecor0_.Id as Id1829_, aliasrecor0_.Path as Path1829_, aliasrecor0_.RouteValues as RouteVal3_1829_, aliasrecor0_.Source as Source1829_, aliasrecor0_.Action_id as Action5_1829_ from Orchard_Alias_AliasRecord aliasrecor0_ where aliasrecor0_.Id>@p0 order by aliasrecor0_.Id asc ]
  Name:p1 - Value:48
[SQL: select aliasrecor0_.Id as Id1829_, aliasrecor0_.Path as Path1829_, aliasrecor0_.RouteValues as RouteVal3_1829_, aliasrecor0_.Source as Source1829_, aliasrecor0_.Action_id as Action5_1829_ from Orchard_Alias_AliasRecord aliasrecor0_ where aliasrecor0_.Id>@p0 order by aliasrecor0_.Id asc] ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out

当我停止并查看该网站(真的在任何地方)时,它完全被这个错误破坏了:

Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out

[Win32Exception (0x80004005): The wait operation timed out]
[SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]

Line 162:            return criteria
Line 163:                .List<ContentItemVersionRecord>()
Line 164:                .Select(x => ContentManager.Get(x.ContentItemRecord.Id, _versionOptions != null && _versionOptions.IsDraftRequired ? _versionOptions : VersionOptions.VersionRecord(x.Id)))

Source File: d:\Projects\Office Ignite\Main-1.7\src\Orchard\ContentManagement\DefaultContentQuery.cs    Line: 162 

我不知道为什么这两个CT被隔离了。他们没有自定义表格或任何东西的部分。

任何信息都将受到高度赞赏。谢谢!

1 个答案:

答案 0 :(得分:0)

我有同样的错误,但似乎问题与我的代码没有直接关系。

我现在找到了两个解决方案:

1。)分类标准腐败问题https://orchard.codeplex.com/workitem/20411

2。)静态是脏的并且选择陈述中的默认值被大量使用https://serverfault.com/questions/419997/the-wait-operation-timed-out-when-running-sql-server-in-hyper-v