locked
Exception of type 'System.OutOfMemoryException' was thrown. RRS feed

  • Question

  • User-1941296693 posted

     I get the following error, any advice would be greatly welcomed. thanks.

     

    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.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity) +29
       System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength) +69
       System.Text.StringBuilder.Append(Char[] value, Int32 startIndex, Int32 charCount) +154
       System.IO.StreamReader.ReadToEnd() +93
       System.Web.UI.Util.StringFromFile(String path, Encoding& encoding) +69
       System.Web.UI.Util.StringFromFile(String path) +29
       System.Web.UI.Util.StringFromFileIfExists(String path) +28
       System.Web.Compilation.AssemblyBuilder.GetGeneratedSourceFromBuildProvider(BuildProvider buildProvider) +53
       System.Web.Compilation.AssemblyBuilder.GetErrorSourceFileContents(CompilerResults results) +67
       System.Web.Compilation.AssemblyBuilder.Compile() +8567053
       System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +71
       System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +8732923
       System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
       System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
       System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
       System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
       System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
       System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
       System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
       System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    
    Sunday, July 25, 2010 10:44 AM

Answers

  • User-815382200 posted

    It seems that your application is trying to use too much memory. Common scenario is that there is an infinite loop left somwhere in your code. It won't throw an error until you run out of memory and when OutOfMemory Exception is thrown. Please examine your code if everything is fine... 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 25, 2010 11:57 AM

All replies

  • User-815382200 posted

    It seems that your application is trying to use too much memory. Common scenario is that there is an infinite loop left somwhere in your code. It won't throw an error until you run out of memory and when OutOfMemory Exception is thrown. Please examine your code if everything is fine... 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 25, 2010 11:57 AM
  • User-1941296693 posted

    seemed to be an issue with hosting company. it appears they have addressed the issue though they wouldn't comment on the reason.


    Wednesday, July 28, 2010 10:07 AM