title: Non-static method requires a target
body: <p>I have a controller action that works fine on Firefox both locally and in production, and IE locally, but not IE in production.  Here is my controller action:</p>
  
  <pre><code>public ActionResult MNPurchase()
  {
      CalculationViewModel calculationViewModel = (CalculationViewModel)TempData["calculationViewModel"];
  
      decimal OP = landTitleUnitOfWork.Sales.Find()
          .Where(x =&gt; x.Min &gt;= calculationViewModel.SalesPrice)
          .FirstOrDefault()
          .OP;
  
      decimal MP = landTitleUnitOfWork.Sales.Find()
          .Where(x =&gt; x.Min &gt;= calculationViewModel.MortgageAmount)
          .FirstOrDefault()
          .MP;
  
      calculationViewModel.LoanAmount = (OP + 100) - MP;
      calculationViewModel.LendersTitleInsurance = (calculationViewModel.LoanAmount + 850);
  
      return View(calculationViewModel);
  }
  </code></pre>
  
  <p>Here is the stack trace I get in IE:</p>
  
  <blockquote>
    <p>Error.
        An error occurred while processing your request.
        System.Reflection.TargetException: Non-static method requires a target. at 
    System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) at 
    System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags 
    invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at 
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder 
    binder, Object[] parameters, CultureInfo culture) at 
    System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at 
    System.Data.Objects.ELinq.QueryParameterExpression.TryGetFieldOrPropertyValue(MemberExpression me, Object instance, Object&amp; memberValue) at 
    System.Data.Objects.ELinq.QueryParameterExpression.TryEvaluatePath(Expression expression, ConstantExpression&amp; constantExpression) at 
    System.Data.Objects.ELinq.QueryParameterExpression.EvaluateParameter(Object[] arguments) 
    at System.Data.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable<code>1 forMergeOption) 
    at System.Data.Objects.ObjectQuery</code>1.GetResults(Nullable<code>1 forMergeOption) at 
    System.Data.Objects.ObjectQuery</code>1.System.Collections.Generic.IEnumerable.GetEnumerator()
     at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable<code>1 source) at 
    System.Linq.Queryable.FirstOrDefault[TSource](IQueryable</code>1 source) at 
    LandTitle.Controllers.HomeController.MNRefi() at lambda_method(Closure , ControllerBase ,
     Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext 
    controllerContext, IDictionary<code>2 parameters) at 
    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext 
    controllerContext, ActionDescriptor actionDescriptor, IDictionary</code>2 parameters) at 
    Castle.Proxies.Invocations.ControllerActionInvoker_InvokeActionMethod.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at 
    Glimpse.Mvc3.Interceptor.InvokeActionMethodInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at 
    Castle.Proxies.AsyncControllerActionInvokerProxy.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary``2 parameters) at 
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c__DisplayClass37.&lt;>c__DisplayClass39.b__33() at 
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c__DisplayClass4f.b__49() at 
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c__DisplayClass37.b__36(IAsyncResult asyncResult) at 
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c__DisplayClass25.&lt;>c__DisplayClass2a.b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c__DisplayClass25.b__22(IAsyncResult asyncResult)</p>
  </blockquote>