Ho un'azione del controller che funziona bene su Firefox sia localmente che in produzione e IE localmente, ma non IE in produzione. Ecco l'azione del mio controller:
public ActionResult MNPurchase()
{
CalculationViewModel calculationViewModel = (CalculationViewModel)TempData["calculationViewModel"];
decimal OP = landTitleUnitOfWork.Sales.Find()
.Where(x => x.Min >= calculationViewModel.SalesPrice)
.FirstOrDefault()
.OP;
decimal MP = landTitleUnitOfWork.Sales.Find()
.Where(x => x.Min >= calculationViewModel.MortgageAmount)
.FirstOrDefault()
.MP;
calculationViewModel.LoanAmount = (OP + 100) - MP;
calculationViewModel.LendersTitleInsurance = (calculationViewModel.LoanAmount + 850);
return View(calculationViewModel);
}
Ecco la traccia dello stack che ottengo in IE:
Errore. Si è verificato un errore durante l'elaborazione della richiesta. System.Reflection.TargetException: il metodo non statico richiede una destinazione. at System.Reflection.RuntimeMethodInfo.CheckConsistency (Target oggetto) su System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parametri, CultureInfo culture) su System.Reflection.RuntimeMethodInfo. BindingFlags invokeAttr, Binder binder, Parametri Object [], Cultura CultureInfo) su System.Reflection.RuntimePropertyInfo.GetValue (Object obj, Object [] index) su System.Data.Objects.ELinq.QueryParameterExpression.TryGetFieldOrPropertyValue (MemberExpression Object & memberValue) su System.Data.Objects.ELinq.QueryParameterExpression.TryEvaluatePath (espressione di espressione,
1 forMergeOption) at System.Data.Objects.ObjectQuery
1.GetResults (Nullable1 forMergeOption) at System.Data.Objects.ObjectQuery
1.System.Collections.Generic.IEnumerable.GetEnumerator () su System.Linq.Enumerable.FirstOrDefault [TSource] (1 source) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable
sorgente IEnumerable 1) su LandTitle.Controllers.HomeController.MNRefi () su lambda_metase (Chiusura, ControllerB , Object []) su System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parametri) su Castle.Proxies.Invocations.ControllerActionInvoker_InvokeActionMethod.InvokeMethodOnTarget () su Castle.DynamicProxy.AbstractInvocation.Proceed () su Glimpse.Mvc3.Interceptor.InvokeActionMethodIntercept.Procept (II) Castle.Proxies.AsyncControllerActionInvokerProxy.InvokeActionMethod (ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary``2 parametri) su System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvcDisplayCvc .AsyncControllerActionInvoker. <> C__DisplayClass4f.b__49 () su System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass37.b__36 (IAsyncResult asyncResult) su System.AWc.M.AsyncControllerActionInvoker. <> C__DisplayClass25. <> C__DisplayClass2a.b__20 () su System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass25.b__22 (IAsyncResult asyncResult)