これは本当に基本的な質問であり、重複している可能性があります。誰でも、どのような有用なエラー情報が.Netの任意のプログラムによって生成されたかを教えてくれますか?.NETプログラムで生成されたスタックトレースまたはエラー情報を読み取って例外の根本原因を見つける方法
今日、「あいまい一致が見つかりました」というエラーが発生しました。エンティティをデータベースに保存しています(EF4を使用) このエラーがなぜ発生するのか、根本的な原因は何かわかりません。添付のスナップは同じです。
はここで、完全なエラーの詳細です
System.Reflection.AmbiguousMatchException was unhandled by user code
Message=Ambiguous match found.
Source=mscorlib
StackTrace:
at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetProperty(String name)
at IAA.Data.EntityFramework.RepositoryWithTypedId`2.SaveOrUpdate[T](T entity)
at ABC.XYZ.ApplicationServices.AcknowledgementManagementService.SaveOrUpdate(AcknowledgementFormViewModel acknowledgementFormViewModel) in E:\RA\ABC.XYZ\app\ABC.XYZ.ApplicationServices\AcknowledgementManagementService.cs:line 123
at ABC.XYZ.Web.Controllers.AcknowledgementsController.Acknowledgements(AcknowledgementFormViewModel acknowledgementFormViewModel) in E:\RA\ABC.XYZ\app\ABC.XYZ.Web.Controllers\AcknowledgementsController.cs:line 68
at lambda_method(Closure , ControllerBase , Object[])
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
のInnerException:
可能性のある複製http://stackoverflow.com/questions/2877000/entity-framework-4-poco-entities-in-separate-assembly-dynamic-data-website –
yeh、私はそのリンクに従いますが、それでも私の質問は違う。私はこのエラー情報を読んで原因を見つける方法を知りたいのですが。 AmbiguousMatchExceptionには多くのプロパティが含まれていますが、どちらが有用かは、ルートをトレースするのと同じです。 – paragy