“/”应用程序中的服务器错误。 The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ShowProduct(Int32, System.String, System.String, System.String, Int32)' in 'YD.BioEquip.Controllers.mController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.参数名: parameters 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ShowProduct(Int32, System.String, System.String, System.String, Int32)' in 'YD.BioEquip.Controllers.mController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.参数名: parameters

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:

[ArgumentException: The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ShowProduct(Int32, System.String, System.String, System.String, Int32)' in 'YD.BioEquip.Controllers.mController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.参数名: parameters] System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) +658 System.Linq.WhereSelectArrayIterator`2.MoveNext() +82 System.Linq.Buffer`1..ctor(IEnumerable`1 source) +488 System.Linq.Enumerable.ToArray(IEnumerable`1 source) +103 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +164 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39 System.Web.Mvc.Async.c__DisplayClass39.b__33() +120 System.Web.Mvc.Async.c__DisplayClass4f.b__49() +452 System.Web.Mvc.Async.c__DisplayClass37.b__36(IAsyncResult asyncResult) +15 System.Web.Mvc.Async.c__DisplayClass2a.b__20() +33 System.Web.Mvc.Async.c__DisplayClass25.b__22(IAsyncResult asyncResult) +240 System.Web.Mvc.c__DisplayClass1d.b__18(IAsyncResult asyncResult) +28 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.c__DisplayClass8.b__3(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.33440

(聊城荣恒医疗器械有限公司)