Firefox üzerinde hem yerel hem de üretimde ve IE'de yerel olarak iyi çalışan bir denetleyici eylemim var, ancak üretimde IE değil. İşte benim denetleyici eylem:
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);
}
İşte ben IE almak yığın izleme:
Hata. İşleminiz gerçekleştirilirken bir hata oluştu. System.Reflection.TargetException: Statik olmayan yöntem bir hedef gerektirir. System.Reflection.RuntimeMethodInfo.CheckConsistency'de (Object target) at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parametreleri, CultureInfo kültür) System.Reflection.RuntimeMetho ObjectdInfo nesnesinde, BindingFlags invokeAttr, Binder binder, Object [] parametreleri, CultureInfo kültürü) System.Reflection.RuntimePropertyInfo.GetValue (Object obj, Object [] dizini) System.Data.Objects.ELinq.QueryParameterExpression.TryGetFieldOrPropertyValue (MemberExpress me, Object örneği) Object & memberValue) at System.Data.Objects.ELinq.QueryParameterExpression.TryEvaluatePath (İfade ifadesi,
1 forMergeOption) at System.Data.Objects.ObjectQuery
1.GetResults (Nullable1 forMergeOption) at System.Data.Objects.ObjectQuery
1.System.Collections.Generic.IEnumerable.GetEnumerator (), System.Linq.Enumerable.FirstOrDefault [TSource] (IEnumerable1 source) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable
1 kaynak) LandTitle.Controllers.HomeController.MNRefi () 'de lambda_method (Closure Controller, , Object []) at System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
Castle.Proxies.Invocations.ControllerActionInvoker_InvokeActionMethod.InvokeMethodOnTarget () 'da Castle.DynamicProxy.AbstractInvocation.Proceed ()' da Castle.DynamicProxy. Castle.Proxies.AsyncControllerActionInvokerProxy.InvokeActionMethod (ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary``2 parametreleri) System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass.As. c__DisplayClass.As. c__DisplayClass37. .AsyncControllerActionInvoker. <> C__DisplayClass4f.b__49 () at System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass37.b__36 (IAsyncResult asyncResult) öğesinde System.Web.Mvc.AsyncResult.AsyncControllerActionInvoker. <> C__DisplayClass25. <> C__DisplayClass2a.b__20 () at System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass25.b__22 (IAsyncResult asyncResult)