ローカルと本番環境の両方でFirefoxで正常に動作するコントローラーアクションがありますが、ローカルではIEですが、本番環境ではIEでは動作しません。これが私のコントローラのアクションです:
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);
}
IEで取得したスタックトレースは次のとおりです。
エラー。リクエストの処理中にエラーが発生しました。System.Reflection.TargetException:非静的メソッドにはターゲットが必要です。System.Reflection.RuntimeMethodInfo.Invoke(Object obj、System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj、BindingFlags invokeAttr、Binderバインダ、Object []パラメータ、CultureInfoカルチャ)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj、 BindingFlags invokeAttr、バインダーバインダー、Object []パラメーター、CultureInfoカルチャー)System.Reflection.RuntimePropertyInfo.GetValue(Object obj、Object [] index)at System.Data.Objects.ELinq.QueryParameterExpression.TryGetFieldOrPropertyValue(MemberExpression me、Object instance、 Object&memberValue)at System.Data.Objects.ELinq.QueryParameterExpression.TryEvaluatePath(Expression expression、
1 forMergeOption) at System.Data.Objects.ObjectQuery
1.GetResults(Nullable1 forMergeOption) at System.Data.Objects.ObjectQuery
1.System.Collections.Generic.IEnumerable.GetEnumerator()at System.Linq.Enumerable.FirstOrDefault [TSource](IEnumerable1 source) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable
1 source)at LandTitle.Controllers.HomeController.MNRefi()at lambda_method(Closure、ControllerBase 、Object [])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()at Castle.DynamicProxy.AbstractInvocation.Proceed()at Glimpse.Mvc3.Interceptor.InvokeActionMethodInterceptor.Intercept(IInvocation invocation)at Castle.DynamicProxy.AbstractProce.Probs.Proxy.Abstract Castle.Proxies.AsyncControllerActionInvokerProxy.InvokeActionMethod(ControllerContext controllerContext、ActionDescriptor actionDescriptor、IDictionary``2 parameters)at System.Web.Mvc.Async.AsyncControllerActionInvoker。<> c__DisplayClass37。<> c__DisplayClass39.b__33()at System.Web.Mvc.Async .AsyncControllerActionInvoker。<> c__DisplayClass4f.b__49()at System.Web.Mvc.Async.AsyncControllerActionInvoker。<> c__DisplayClass37.b__36(IAsyncResult asyncResult)at System.Web.Mvc.Async。AsyncControllerActionInvoker。<> c__DisplayClass25。<> c__DisplayClass2a.b__20()at System.Web.Mvc.Async.AsyncControllerActionInvoker。<> c__DisplayClass25.b__22(IAsyncResult asyncResult)