More in this section

Forums / General Discussions / Memory error

Memory error

2 posts, 0 answered
  1. John
    John avatar
    97 posts
    Registered:
    11 Jan 2011
    24 Mar 2011
    Link to this post

    Hi

    We are repeatedly getting below exception which seems to suggest issue with memory. Our VPS has 1024MB of memory.

    What can we do to fix this issue?

    Thanks

    Regards


    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.RuntimeAssembly.GetRawBytes(RuntimeAssembly assembly, ObjectHandleOnStack retRawBytes) +0
       System.Reflection.RuntimeAssembly.GetRawBytes() +38
       System.Security.Policy.Hash.GetRawData() +68
       System.Security.Policy.Hash.GenerateHash(Type hashType) +75
       System.Security.Policy.Hash.get_SHA1() +101
       System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +68
       System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +77
       System.Web.Handlers.RuntimeScriptResourceHandler.GetScriptResourceUrlImpl(List`1 assemblyResourceLists, Boolean zip) +378
       System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip) +658
       System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip) +143
       System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +296
       System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip) +613
       System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +213
       System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +202
       System.Web.UI.ScriptManager.RegisterScripts() +444
       System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8897866
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    25 Mar 2011
    Link to this post
    Hello John,

    Thank you for contacting Telerik Support.

    The problem concerning OutOfMemoryException is caused by an infinite loop which appears in some cases.

    Can you give me more information about your project and also tell me when the error is occurring so I can be of greater help to you.

    Best wishes,
    Victor Velev
    the Telerik team
2 posts, 0 answered