LINQ to SQL exception: System.OutOfMemoryException

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2009-02-25T22:32:33Z Indexed on 2010/05/22 19:10 UTC
Read the original article Hit count: 884

Filed under:

Not sure why I keep getting an OutOfMemory exception. I'm using ASP.NET MVC with LINQ to SQL. Here's some of the stack trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IntPtr method) +0
System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType) +7652553
System.Data.Linq.SqlClient.ObjectReaderCompiler.Compile(SqlExpression expression, Type elementType) +442
System.Data.Linq.SqlClient.SqlProvider.GetReaderFactory(SqlNode node, Type elemType) +100
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +253
System.Data.Linq.Table1.System.Linq.IQueryProvider.Execute(Expression expression) +49
System.Linq.Queryable.Single(IQueryable
1 source, Expression`1 predicate) +301
WorkGrabber.Web.Models.WorkGrabberDataContext.GetJob(Int32 id) +233
WorkGrabber.Web.Controllers.BidsController.New(Int32 jobId) +19

© Stack Overflow or respective owner

Related posts about linq-to-sql