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
1 source, Expression`1 predicate) +301
System.Linq.Queryable.Single(IQueryable
WorkGrabber.Web.Models.WorkGrabberDataContext.GetJob(Int32 id) +233
WorkGrabber.Web.Controllers.BidsController.New(Int32 jobId) +19