Not enough storage is available to complete this operation.

Topics: Troubleshooting
Apr 10, 2012 at 1:52 AM

Below is the error I am getting on my Orchard Site.  I have created a custom Module that makes a connection to a SQL Server using Entity Framework to query data.  I can not reproduce on my local development computer and this only happens on my hosted website.  Any help would be greatly appreciated. 

 

Server Error in '/' Application.

Not enough storage is available to complete this operation.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlServerCe.SqlCeException: Not enough storage is available to complete this operation.

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.


Stack Trace: 

[SqlCeException (0x80004005): Not enough storage is available to complete this operation.]
   System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr) +24
   System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) +1631
   System.Data.SqlServerCe.SqlCeConnection.Open() +52
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +104
   NHibernate.AdoNet.ConnectionManager.GetConnection() +42
   NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) +46
   NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) +68
   NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) +264
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +186
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +70
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +116

[ADOException: could not execute query
[ SELECT this_.Id as Id75_3_, this_.Number as Number75_3_, this_.Published as Published75_3_, this_.Latest as Latest75_3_, this_.Data as Data75_3_, this_.ContentItemRecord_id as ContentI6_75_3_, contentite1_.Id as Id74_0_, contentite1_.Data as Data74_0_, contentite1_.ContentType_id as ContentT3_74_0_, sitesettin4_.Id as Id6_1_, sitesettin4_.SiteSalt as SiteSalt6_1_, sitesettin4_.SiteName as SiteName6_1_, sitesettin4_.SuperUser as SuperUser6_1_, sitesettin4_.PageTitleSeparator as PageTitl5_6_1_, sitesettin4_.HomePage as HomePage6_1_, sitesettin4_.SiteCulture as SiteCult7_6_1_, sitesettin4_.ResourceDebugMode as Resource8_6_1_, sitesettin4_.PageSize as PageSize6_1_, sitesettin4_.SiteTimeZone as SiteTim10_6_1_, contenttyp5_.Id as Id76_2_, contenttyp5_.Name as Name76_2_ FROM Orchard_Framework_ContentItemVersionRecord this_ inner join Orchard_Framework_ContentItemRecord contentite1_ on this_.ContentItemRecord_id=contentite1_.Id left outer join Settings_SiteSettingsPartRecord sitesettin4_ on contentite1_.Id=sitesettin4_.Id left outer join Orchard_Framework_ContentTypeRecord contenttyp5_ on contentite1_.ContentType_id=contenttyp5_.Id WHERE contentite1_.Id = ? and this_.Published = ? ]
Positional parameters:  #0>1 #1>True
[SQL: SELECT this_.Id as Id75_3_, this_.Number as Number75_3_, this_.Published as Published75_3_, this_.Latest as Latest75_3_, this_.Data as Data75_3_, this_.ContentItemRecord_id as ContentI6_75_3_, contentite1_.Id as Id74_0_, contentite1_.Data as Data74_0_, contentite1_.ContentType_id as ContentT3_74_0_, sitesettin4_.Id as Id6_1_, sitesettin4_.SiteSalt as SiteSalt6_1_, sitesettin4_.SiteName as SiteName6_1_, sitesettin4_.SuperUser as SuperUser6_1_, sitesettin4_.PageTitleSeparator as PageTitl5_6_1_, sitesettin4_.HomePage as HomePage6_1_, sitesettin4_.SiteCulture as SiteCult7_6_1_, sitesettin4_.ResourceDebugMode as Resource8_6_1_, sitesettin4_.PageSize as PageSize6_1_, sitesettin4_.SiteTimeZone as SiteTim10_6_1_, contenttyp5_.Id as Id76_2_, contenttyp5_.Name as Name76_2_ FROM Orchard_Framework_ContentItemVersionRecord this_ inner join Orchard_Framework_ContentItemRecord contentite1_ on this_.ContentItemRecord_id=contentite1_.Id left outer join Settings_SiteSettingsPartRecord sitesettin4_ on contentite1_.Id=sitesettin4_.Id left outer join Orchard_Framework_ContentTypeRecord contenttyp5_ on contentite1_.ContentType_id=contenttyp5_.Id WHERE contentite1_.Id = ? and this_.Published = ?]]
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +213
   NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) +18
   NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) +79
   NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) +557
   NHibernate.Impl.CriteriaImpl.List(IList results) +42
   NHibernate.Impl.CriteriaImpl.List() +58
   Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate) in c:\Users\sebros\My Projects\Orchard\src\Orchard\ContentManagement\DefaultContentManager.cs:319
   Orchard.ContentManagement.DefaultContentManager.Get(Int32 id, VersionOptions options, QueryHints hints) in c:\Users\sebros\My Projects\Orchard\src\Orchard\ContentManagement\DefaultContentManager.cs:140
   Orchard.ContentManagement.ContentGetExtensions.Get(IContentManager manager, Int32 id, VersionOptions options, QueryHints hints) in c:\Users\sebros\My Projects\Orchard\src\Orchard\ContentManagement\ContentExtensions.cs:160
   Orchard.Core.Settings.Services.SiteService.GetSiteSettings() in c:\Users\sebros\My Projects\Orchard\src\Orchard.Web\Core\Settings\Services\SiteService.cs:46
   Orchard.Settings.CurrentSiteWorkContext.Get(String name) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Settings\CurrentSiteWorkContext.cs:13
   Orchard.Environment.<>c__DisplayClass7`1.<FindResolverForState>b__2(IWorkContextStateProvider wcsp) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\WorkContextImplementation.cs:32
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +85
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +166
   Orchard.Environment.WorkContextImplementation.FindResolverForState(String name) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\WorkContextImplementation.cs:32
   System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +72
   Orchard.Environment.WorkContextImplementation.GetState(String name) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\WorkContextImplementation.cs:27
   Orchard.WorkContext.get_CurrentSite() in c:\Users\sebros\My Projects\Orchard\src\Orchard\WorkContext.cs:52
   Orchard.Widgets.Filters.WidgetFilter.OnResultExecuting(ResultExecutingContext filterContext) +1587
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +45
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8969201
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Coordinator
Apr 11, 2012 at 11:38 PM

I think it's pretty explicit: the server ran out of disk space. Talk to your hosting company.