Saya memiliki aksi pengontrol yang berfungsi dengan baik di Firefox baik secara lokal maupun dalam produksi, dan IE secara lokal, tetapi tidak dalam produksi. Ini adalah tindakan pengontrol saya:
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);
}
Berikut adalah jejak tumpukan yang saya dapatkan di IE:
Kesalahan. Kesalahan terjadi saat memproses permintaan Anda. System.Reflection.TargetException: Metode non-statis membutuhkan target. di System.Reflection.RuntimeMethodInfo.CheckConsistency (Object target) di System.RefimeMethodInfo.InvokeArgumentsCheck (Object object, BindingFlags invokeAttr, Binder binder, parameter [], Culture [objek], budaya [budayaInfo objek] di Object.Refime. BindingFlags invokeAttr, Binder binder, parameter Object [], CultureInfo culture) di System.Refime.RuntimePropertyInfo.GetValue (Object obj, Object [] index) di System.Data.Objects.ELinq.Quin Object & memberValue) di System.Data.Objects.ELinq.QueryParameterExpression.TryEvaluatePath (Ekspresi ekspresi,
1 forMergeOption) at System.Data.Objects.ObjectQuery
1.Hasil Hasil (Tidak dapat1 forMergeOption) at System.Data.Objects.ObjectQuery
dihapus 1.Sistem.Koleksi.Kumum.Tak terhitung. DapatkanKumumerator () di System.Linq.Tak dapat dihitung.FirstOrDefault [TSource] (1 source) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable
sumber IEnumerable 1) di LandTitle.Controllers.HomeController.MHRControler (Cluster di metode) , Objek []) di System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parameter) di Castle.Proxies.Invocations.ControllerActionInvoker_InvokeActionMethod.InvokeMethodOnTarget () di Castle.DynamicProxy.AbstractInvocation.Proceed () di Glimpse.Mvc3.Interceptor.InvcAction.InvokeActionMetrationInterproject. Castle.Proxies.AsyncControllerActionInvokerProxy.InvokeActionMethod (ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary``2 parameter) di System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__D33cema. .AsyncControllerActionInvoker. <> C__DisplayClass4f.b__49 () di System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass37.b__36 (IAsyncResult asyncResult) di System.Web.AsyncControllerActionInvoker. <> C__DisplayClass25. <> C__DisplayClass2a.b__20 () di System.Web.Mvc.Async.AsyncControllerActionInvoker. <> C__DisplayClass25.b__22 (IAsyncResultultult)