title: Exception of type 'System.OutOfMemoryException' was thrown
body: <p>I run into this exception in the middle of the project, when i press F5 to start debugging. I am using Visual Studio 2011 and the project is MCV3, EF4 and i am using Crystal report in the project.</p>
  
  <p>Here is the trace of the exception:</p>
  
  <blockquote>
    <p>Server Error in '/' Application.</p>
    
    <p>Exception of type
    'System.OutOfMemoryException' was
    thrown.</p>
    
    <p>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. </p>
    
    <p>Exception Details:
    System.OutOfMemoryException: Exception
    of type 'System.OutOfMemoryException'
    was thrown.</p>
    
    <p>Source Error: </p>
    
    <p>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.</p>
    
    <p>Stack Trace: </p>
    
    <p>[OutOfMemoryException: Exception of
    type 'System.OutOfMemoryException' was
    thrown.]<br>
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName
    fileName, String codeBase, Evidence
    assemblySecurity, RuntimeAssembly
    locationHint, StackCrawlMark&amp;
    stackMark, Boolean
    throwOnFileNotFound, Boolean
    forIntrospection, Boolean
    suppressSecurityChecks) +0<br>
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName
    fileName, String codeBase, Evidence
    assemblySecurity, RuntimeAssembly
    locationHint, StackCrawlMark&amp;
    stackMark, Boolean
    throwOnFileNotFound, Boolean
    forIntrospection, Boolean
    suppressSecurityChecks) +39<br>
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
    assemblyRef, Evidence
    assemblySecurity, StackCrawlMark&amp;
    stackMark, Boolean forIntrospection,
    Boolean suppressSecurityChecks) +132<br>
    System.Reflection.RuntimeAssembly.InternalLoad(String
    assemblyString, Evidence
    assemblySecurity, StackCrawlMark&amp;
    stackMark, Boolean forIntrospection)
    +144    System.Reflection.Assembly.Load(String
    assemblyString) +28<br>
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
    assemblyName, Boolean starDirective)
    +46</p>
    
    <p>[ConfigurationErrorsException:
    Exception of type
    'System.OutOfMemoryException' was
    thrown.]<br>
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
    assemblyName, Boolean starDirective)
    +618    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
    +209    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo
    ai) +130<br>
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection
    compConfig) +178<br>
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
    +94    System.Web.Compilation.BuildManager.CallPreStartInitMethods()
    +332    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
    appManager, IApplicationHost appHost,
    IConfigMapPathFactory
    configMapPathFactory,
    HostingEnvironmentParameters
    hostingParameters, PolicyLevel
    policyLevel, Exception
    appDomainCreationException) +591</p>
    
    <p>[HttpException (0x80004005): Exception
    of type 'System.OutOfMemoryException'
    was thrown.]<br>
    System.Web.HttpRuntime.FirstRequestInit(HttpContext
    context) +8946484<br>
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext
    context) +97<br>
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest
    wr) +258</p>
  </blockquote>
  
  <p>any idea on how this come up.</p>