Orchard 1.8 site stopped working

Topics: Core
Jun 27, 2014 at 2:29 AM
I have an Orchard 1.8 site that was working, but is now not. I get nothing but a blank white page back. I tried to manually go to the admin area, and it redirected me to the login page, but that one failed as well (could not set HTTP headers once they had been sent).

The event below is the result of a request for the home page of the site. I pulled that query out, removed the TOP and WHERE clauses to get rid of the @ parameters, and tried to run it in SQL Server Management Studio, where it ran successfully. I'm pretty new to Orchard, but not to the .NET framework; this one has me stumped.

Here's part 1 of the event / stack trace: (it was too big for one post)
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 6/27/2014 1:04:34 AM 
Event time (UTC): 6/27/2014 1:04:34 AM 
Event ID: 551cae512c484fd68cd407083ccb3359 
Event sequence: 3402 
Event occurrence: 342 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/3/ROOT-1-130482012443264643 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\inetpub\Orchard\ 
    Machine name: [myserver] 
 
Process information: 
    Process ID: 3084 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\.NET v4.5 
 
Exception information: 
    Exception type: TargetInvocationException 
    Exception message: Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:line 65
   at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass3.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 185
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 94
   at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86
   at Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 30
   at CallSite.Target(Closure , CallSite , Object , Object )
   at ASP._Page_Modules_Orchard_Widgets_Views_Widget_cshtml.Execute() in c:\inetpub\Orchard\Modules\Orchard.Widgets\Views\Widget.cshtml:line 1
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 151
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.<>c__DisplayClass26.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 133
   at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass3.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 185
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 94
   at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86
   at Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 30
   at CallSite.Target(Closure , CallSite , Object , Object )
   at Orchard.Core.Shapes.CoreShapes.Zone(Object Display, Object Shape, TextWriter Output) in c:\Orchard\src\Orchard.Web\Core\Shapes\CoreShapes.cs:line 267

While preparing SELECT TOP (@p0)  this_.Id as Id658_3_, this_.Number as Number658_3_, this_.Published as Published658_3_, this_.Latest as Latest658_3_, this_.Data as Data658_3_, this_.ContentItemRecord_id as ContentI6_658_3_, autoroutep1_.Id as Id688_0_, autoroutep1_.UseCustomPattern as UseCusto2_688_0_, autoroutep1_.CustomPattern as CustomPa3_688_0_, autoroutep1_.DisplayAlias as DisplayA4_688_0_, autoroutep1_.ContentItemRecord_id as ContentI5_688_0_, contentite4_.Id as Id657_1_, contentite4_.Data as Data657_1_, contentite4_.ContentType_id as ContentT3_657_1_, contenttyp5_.Id as Id659_2_, contenttyp5_.Name as Name659_2_ FROM devo_Orchard_Framework_ContentItemVersionRecord this_ inner join devo_Orchard_Autoroute_AutoroutePartRecord autoroutep1_ on this_.Id=autoroutep1_.Id left outer join devo_Orchard_Framework_ContentItemRecord contentite4_ on this_.ContentItemRecord_id=contentite4_.Id left outer join devo_Orchard_Framework_ContentTypeRecord contenttyp5_ on contentite4_.ContentType_id=contenttyp5_.Id WHERE autoroutep1_.DisplayAlias = @p1 and this_.Published = @p2 an error occurred
   at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 117
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 217
   at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1226
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 421
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 251
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1581
   at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1472
   at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Criteria\CriteriaLoader.cs:line 76
   at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\SessionImpl.cs:line 1984
   at NHibernate.Impl.CriteriaImpl.List(IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\CriteriaImpl.cs:line 265
   at NHibernate.Impl.CriteriaImpl.List[T]() in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\CriteriaImpl.cs:line 277
   at Orchard.ContentManagement.DefaultContentQuery.ContentQuery`1.Orchard.ContentManagement.IContentQuery<T>.Slice(Int32 skip, Int32 count) in c:\Orchard\src\Orchard\ContentManagement\DefaultContentQuery.cs:line 266
   at Orchard.Autoroute.Services.PathResolutionService.GetPath(String path)
   at Orchard.Blogs.Routing.ArchiveConstraint.Match(HttpContextBase httpContext, Route route, S
Jun 27, 2014 at 2:30 AM
Edited Jun 27, 2014 at 2:31 AM
Part 2:
Request information: 
    Request URL: [the main URL]
    Request path: / 
    User host address: [my home IP]
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\.NET v4.5 
 
Thread information: 
    Thread ID: 9 
    Thread account name: IIS APPPOOL\.NET v4.5 
    Is impersonating: False 
    Stack trace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:line 65
   at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass3.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 185
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 94
   at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86
   at Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 30
   at CallSite.Target(Closure , CallSite , Object , Object )
   at ASP._Page_Modules_Orchard_Widgets_Views_Widget_cshtml.Execute() in c:\inetpub\Orchard\Modules\Orchard.Widgets\Views\Widget.cshtml:line 1
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 151
   at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.<>c__DisplayClass26.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 133
   at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass3.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Orchard\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 185
   at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 94
   at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86
   at Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\Orchard\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 30
   at CallSite.Target(Closure , CallSite , Object , Object )
   at Orchard.Core.Shapes.CoreShapes.Zone(Object Display, Object Shape, TextWriter Output) in c:\Orchard\src\Orchard.Web\Core\Shapes\CoreShapes.cs:line 267
Jun 27, 2014 at 2:36 AM
I should probably also mention that it's one of 4 tenants, and the three others are working swimmingly.
Developer
Jun 27, 2014 at 3:03 PM
Could you also post the relevant log entries? Might contains some more information.
Jul 3, 2014 at 8:45 PM
First off, sorry for the delay in reply. I had this set to e-mail me when someone replied, but I didn't get that e-mail.

By "log entries", are you talking about the web server log? Those for the above request are below.
2014-06-27 01:04:34 GET / - - [my_ip] HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/35.0.1916.153+Safari/537.36 - 200 218
2014-06-27 01:04:34 GET /favicon.ico - - [my_ip] HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/35.0.1916.153+Safari/537.36 - 500 3660
Interestingly, it is now working again. However, if there is some way to figure out what was going on, I'd like to keep digging. However, I realize that some bugs can't be tracked down if they can't be duplicated. Please let me know if there is any other information (or other log) that you would like to see.
Developer
Jul 3, 2014 at 9:31 PM
I meant the Orchard logs (see http://orcharddojo.net/orchard-resources/Library/Faq/). Most possibly you'd find the same errors there but it can give a bit more context. Specifically what is missing is what actually the SQL-related error was.
Aug 30, 2014 at 7:23 PM
(my apologies x 1,000 - Gmail was eating these reply e-mails. Thanks SO MUCH for that link! I knew it had to be logged somewhere but I couldn't find it.)

The log (well, as much as will fit) for that request is below. Is it saying that the connection it obtained was closed?
2014-06-27 01:04:34,834 [9] NHibernate.Util.ADOExceptionReporter - DanielsWeeklyDevotions - While preparing SELECT TOP (@p0)  this_.Id as Id658_3_, this_.Number as Number658_3_, this_.Published as Published658_3_, this_.Latest as Latest658_3_, this_.Data as Data658_3_, this_.ContentItemRecord_id as ContentI6_658_3_, autoroutep1_.Id as Id688_0_, autoroutep1_.UseCustomPattern as UseCusto2_688_0_, autoroutep1_.CustomPattern as CustomPa3_688_0_, autoroutep1_.DisplayAlias as DisplayA4_688_0_, autoroutep1_.ContentItemRecord_id as ContentI5_688_0_, contentite4_.Id as Id657_1_, contentite4_.Data as Data657_1_, contentite4_.ContentType_id as ContentT3_657_1_, contenttyp5_.Id as Id659_2_, contenttyp5_.Name as Name659_2_ FROM devo_Orchard_Framework_ContentItemVersionRecord this_ inner join devo_Orchard_Autoroute_AutoroutePartRecord autoroutep1_ on this_.Id=autoroutep1_.Id left outer join devo_Orchard_Framework_ContentItemRecord contentite4_ on this_.ContentItemRecord_id=contentite4_.Id left outer join devo_Orchard_Framework_ContentTypeRecord contenttyp5_ on contentite4_.ContentType_id=contenttyp5_.Id WHERE autoroutep1_.DisplayAlias = @p1 and this_.Published = @p2 an error occurred
 http://devotions.summershome.org/favicon.ico
2014-06-27 01:04:34,834 [9] NHibernate.Util.ADOExceptionReporter - DanielsWeeklyDevotions - Prepare requires an open and available Connection. The connection's current state is closed.
 http://devotions.summershome.org/favicon.ico
2014-06-27 01:04:34,834 [9] Orchard.Exceptions.DefaultExceptionPolicy - DanielsWeeklyDevotions - An unexpected exception was caught
 http://devotions.summershome.org/
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NHibernate.ADOException: While preparing SELECT TOP (@p0)  this_.Id as Id658_3_, this_.Number as Number658_3_, this_.Published as Published658_3_, this_.Latest as Latest658_3_, this_.Data as Data658_3_, this_.ContentItemRecord_id as ContentI6_658_3_, autoroutep1_.Id as Id688_0_, autoroutep1_.UseCustomPattern as UseCusto2_688_0_, autoroutep1_.CustomPattern as CustomPa3_688_0_, autoroutep1_.DisplayAlias as DisplayA4_688_0_, autoroutep1_.ContentItemRecord_id as ContentI5_688_0_, contentite4_.Id as Id657_1_, contentite4_.Data as Data657_1_, contentite4_.ContentType_id as ContentT3_657_1_, contenttyp5_.Id as Id659_2_, contenttyp5_.Name as Name659_2_ FROM devo_Orchard_Framework_ContentItemVersionRecord this_ inner join devo_Orchard_Autoroute_AutoroutePartRecord autoroutep1_ on this_.Id=autoroutep1_.Id left outer join devo_Orchard_Framework_ContentItemRecord contentite4_ on this_.ContentItemRecord_id=contentite4_.Id left outer join devo_Orchard_Framework_ContentTypeRecord contenttyp5_ on contentite4_.ContentType_id=contenttyp5_.Id WHERE autoroutep1_.DisplayAlias = @p1 and this_.Published = @p2 an error occurred ---> System.InvalidOperationException: Prepare requires an open and available Connection. The connection's current state is closed.
   at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
   at System.Data.SqlClient.SqlCommand.Prepare()
   at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 112
   --- End of inner exception stack trace ---
   at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 117
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 217
   at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1226
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 421
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 251
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1581
   at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1472
   at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Criteria\CriteriaLoader.cs:line 76
   at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\SessionImpl.cs:line 1984
   at NHibernate.Impl.CriteriaImpl.List(IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\CriteriaImpl.cs:line 265
   at NHibernate.Impl.CriteriaImpl.List[T]() in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\CriteriaImpl.cs:line 277
   at Orchard.ContentManagement.DefaultContentQuery.ContentQuery`1.Orchard.ContentManagement.IContentQuery<T>.Slice(Int32 skip, Int32 count) in c:\Orchard\src\Orchard\ContentManagement\DefaultContentQuery.cs:line 266
   at Orchard.Autoroute.Services.PathResolutionService.GetPath(String path)
   at Orchard.Blogs.Routing.ArchiveConstraint.Match(HttpContextBase httpContext, Route route, String parameterName, RouteValueDictionary values, RouteDirection routeDirection)
   at System.Web.Routing.Route.ProcessConstraint(HttpContextBase httpContext, Object constraint, String parameterName, RouteValueDictionary values, RouteDirection routeDirection)
   at System.Web.Routing.Route.ProcessConstraints(HttpContextBase httpContext, RouteValueDictionary values, RouteDirection routeDirection)
   at System.Web.Routing.Route.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
   at Orchard.Mvc.Routes.ShellRoute.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) in c:\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:line 77
   at Orchard.Mvc.Routes.HubRoute.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) in c:\Orchard\src\Orchard\Mvc\Routes\HubRoute.cs:line 75
   at System.Web.Routing.RouteCollection.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
   at System.Web.Mvc.RouteCollectionExtensions.GetVirtualPathForArea(RouteCollection routes, RequestContext requestContext, String name, RouteValueDictionary values, Boolean& usingAreas)
   at System.Web.Mvc.UrlHelper.GenerateUrl(String routeName, String actionName, String controllerName, RouteValueDictionary routeValues, RouteCollection routeCollection, RequestContext requestContext, Boolean includeImplicitMvcValues)
   at System.Web.Mvc.UrlHelper.GenerateUrl(String routeName, String actionName, String controllerName, RouteValueDictionary routeValues)
   at System.Web.Mvc.UrlHelper.Action(String actionName, String controllerName, Object routeValues)
   at Orchard.Blogs.Extensions.UrlHelperExtensions.BlogArchiveMonth(UrlHelper urlHelper, BlogPart blogPart, Int32 year, Int32 month)
   at ASP._Page_Modules_Orchard_Blogs_Views_Parts_Blogs_BlogArchives_cshtml.<>c__DisplayClass12.<Execute>b__a(KeyValuePair`2 t, Int32 i) in c:\inetpub\Orchard\Modules\Orchard.Blogs\Views\Parts.Blogs.BlogArchives.cshtml:line 23
   at Orchard.Mvc.Html.HtmlHelperExtensions.UnorderedList[T](IEnumerable`1 items, Func`3 generateContent, String cssClass, Func`2 generateItemCssClass, Func`2 generateAlternatingItemCssClass) in c:\Orchard\src\Orchard\Mvc\Html\HtmlHelperExtensions.cs:line 137
   at Orchard.Mvc.Html.HtmlHelperExtensions.UnorderedList[T](HtmlHelper htmlHelper, IEnumerable`1 items, Func`3 generateContent, String cssClass) in c:\Orchard\src\Orchard\Mvc\Html\HtmlHelperExtensions.cs:line 100
   at ASP._Page_Modules_Orchard_Blogs_Views_Parts_Blogs_BlogArchives_cshtml.Execute() in c:\inetpub\Orchard\Modules\Orchard.Blogs\Views\Parts.Blogs.BlogArchives.cshtml:line 23
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
Developer
Aug 30, 2014 at 7:34 PM
I don't have a good tip for this. Probably your SQL server is under load and dropping connections, probably something timed out in your app... If this happens frequently I'd consult with the hosting provider.

BTW for running an Orchard blog you may be interested in DotNest.
Aug 30, 2014 at 7:38 PM
I am the hosting provider... :) I haven't seen it since, so I'd believe that it was a load issue. It's been humming along nicely.

Thanks for the link to DotNest as well; that's good to know.