+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / OutOfMemoryException under "files" in admin section

OutOfMemoryException under "files" in admin section

6 posts, 0 answered
  1. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    08 Jan 2010
    Link to this post
    Hi people :-)

    I have been getting a number of OutOfMemoryExceptions being thrown in the CMS as of late, and most recently i got the following exception:

    Server Error in '/' Application.


    Exception of type 'System.OutOfMemoryException' was thrown.

    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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]

       System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0

       System.Reflection.CustomAttribute.CreateCaObject(Module module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +63

       System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +604

       System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +129

       System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +65

       System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +133

       System.ComponentModel.ReflectedTypeData.GetAttributes() +583

       System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +58

       System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +32

       System.Web.UI.ViewStateModeByIdAttribute.IsEnabled(Type type) +110

       System.Web.UI.Control.SaveViewStateRecursive() +242

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Control.SaveViewStateRecursive() +106

       System.Web.UI.Page.SaveAllState() +168

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099

     

    Any idea what might be causing this? Our server has more than sufficient memory and every other section of the CMS works without problem so it it quite a confusing problem.

    We have also seen the same problem with "Images & Documents" amongst other areas.

    Thanks for your help with this matter,
    Nick
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Jan 2010
    Link to this post
    Hi Nick,

    In the stack trace I could not find any relevant to Sitefinity itself errors. Most probably you have a user/custom control on your page that causes the problem. Try excluding the controls one by one from the page/ master.page to narrow the issue.
    Images and documents module could thrown similar error during the upload of files larger than 100 MB, but again the error is thrown from SQL server or IIS can cause it.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    08 Jan 2010
    Link to this post
    WOW now that is quick a reply ;-)

    As for your suggestions, this is the admin side of the files section, which has not been edited by anyone here and remains exactly as it was initially. This also holds true for "images & documents" and i can assure you nobody has been uploading such large files!
  4. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    08 Jan 2010
    Link to this post

    It seems that this problem escalated to the point where the whole application/server fell over. we got the following error displayed when trying to access any content from CMS (admin or user side). An IIS reset solved the issue, but obviously we are worried about this kind of behaviour!

    Server Error in '/' Application.

    A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Not enough memory is available to complete this request)

    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.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Not enough memory is available to complete this request)

    Source Error:

    Line 107:		bool canEditTemplates = perm.CheckDemand(GlobalRights.EditTemplates);
    Line 108:
    Line 109:		PagePermission pagePerm = new PagePermission(manager.GetRootPage(), PageRights.View);
    Line 110:		bool canViewPages = pagePerm.CheckDemand();
    Line 111:

    Source File: d:\Inetpub\ContentAPP\Sitefinity\Admin\Default.aspx.cs    Line: 109

    Stack Trace:

    [SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Not enough memory is available to complete this request)]
       System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
       System.Data.SqlClient.SqlConnection.Open() +122
       Nolics.ORMapper.DataProviders.SqlServer2005Provider.newConnection(String connectionString) +40
       Nolics.ORMapper.DataProviders.SQLDataProvider.GetConnection() +60
       Nolics.ORMapper.DataProviders.SqlServer2000Provider.GetSQLBuilder() +28
       Nolics.ORMapper.DataProviders.SQLDataProvider.ExecQuery(DataSet queries) +45
       Nolics.ORMapper.Base.QueryBase`1.LoadQuery(Int32 maxElements, Int32 fromElement) +286
       Nolics.ORMapper.Base.QueryBase`1.LoadAll() +23
       Telerik.Cms.Data.DefaultProvider.GetRootPage() +59
       Telerik.Cms.CmsManager.GetRootPage() +13
       Admin_Default.hintsPanel_DataBound(Object sender, EventArgs e) in d:\Inetpub\ContentAPP\Sitefinity\Admin\Default.aspx.cs:109
       System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +97
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +140
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       Admin_Default.Page_Load(Object sender, EventArgs e) in d:\Inetpub\ContentAPP\Sitefinity\Admin\Default.aspx.cs:188
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +19
       Admin_Default.OnLoad(EventArgs e) in d:\Inetpub\ContentAPP\Sitefinity\Admin\Default.aspx.cs:69
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Jan 2010
    Link to this post
    Hello Nick,

    Check whether you have memory leaks your SQL server or the connection is lost during the wire although the message states that stack says that the connection is established. Also I see that you use SSL and I think that there could be a problem related to the encripton. Remove the SSL and try to connect the server. This will narrow the issue.
    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    08 Jan 2010
    Link to this post
    Thanks for the reply Ivan,  i will forward your comments to the applicable people to see what they have to say..

    i will get back to you to let you know how this goes

Register for webinar
6 posts, 0 answered