Getting OutOfMemoryException when website running

3 posts, 2 answers
  1. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 25 Aug 2011 Link to this post

    Hi Telerik,

    I'm running my website normal before, but now I am getting the following error

    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.

    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) +393
       System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip) +677
       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) +203
       System.Web.UI.ScriptManager.RegisterScripts() +443
       System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
       System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8938218
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716
    


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


    This error page is used RadControls administration page, I tried to run other projects use RadControls on this server, they're still work fine, but this project is to experience such a problem.

    Is there any way to resolve this, its very urgent.
  2. Answer
    Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 25 Aug 2011 Link to this post

    Hello Vndevil,

    In the Stack Trace I see that there are no RadControls involved, so I believe that something else causes the error. You could read this thread in asp.net forum that discuss a similar problem:
    http://forums.asp.net/t/1703117.aspx/1

    Kind regards,
    Vasil
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 25 Aug 2011 Link to this post

    Hello,

    you can solve this issue
    method1 : restart your visual studio
    method2 : Add/increase virtul memory

    Thanks,
    Jayesh Goyani
Back to Top