title: LINQ to SQL exception: System.OutOfMemoryException
body: <p>Not sure why I keep getting an <code>OutOfMemory</code> exception.  I'm using ASP.NET MVC with LINQ to SQL.  Here's some of the stack trace:   </p>
  
  <blockquote>
    <p>[OutOfMemoryException: Exception of
    type 'System.OutOfMemoryException' was
    thrown.]<br>
    System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IntPtr
    method) +0<br>
    System.Reflection.Emit.DynamicMethod.CreateDelegate(Type
    delegateType) +7652553<br>
    System.Data.Linq.SqlClient.ObjectReaderCompiler.Compile(SqlExpression
    expression, Type elementType) +442<br>
    System.Data.Linq.SqlClient.SqlProvider.GetReaderFactory(SqlNode
    node, Type elemType) +100<br>
    System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression
    query) +253<br>
    System.Data.Linq.Table<code>1.System.Linq.IQueryProvider.Execute(Expression
    expression) +49<br>
    System.Linq.Queryable.Single(IQueryable</code>1
    source, Expression`1 predicate) +301<br>
    WorkGrabber.Web.Models.WorkGrabberDataContext.GetJob(Int32
    id) +233<br>
    WorkGrabber.Web.Controllers.BidsController.New(Int32
    jobId) +19</p>
  </blockquote>