INotifyDataErrorInfo ArgumentOutOfRangeException when raising ErrorsChanged event

前端 未结 3 673
后悔当初
后悔当初 2020-12-31 11:23

This is a wierd one and at this point I am thinking that it may have something to do with my machines configuration.

Basically I have created a pretty standard imple

相关标签:
3条回答
  • 2020-12-31 11:43

    I was able to fix this problem by removing the Silverlight application links from the web project and re-adding them.

    Hope this helps.

    0 讨论(0)
  • 2020-12-31 11:48

    I think it is binding error in TextBox template tooltip

    {Binding (Validation.Errors)[0].ErrorContent}
    

    Validation.Errors become empty but binding still has not updated its references.

    I recommend to ignore the exception. Uncheck "Break when exceptions cross AppDomain or managed...." in Debugging settings.

    0 讨论(0)
  • 2020-12-31 11:48

    There are two different possible exceptions that get thrown from native code in this situation. Neither is caught by a try...catch block, no matter what you put (or don't put) in the catch.

    One is "ArgumentOutOfRangeException crossed a native/managed boundary". To stop seeing this one, you need to uncheck "Break when exceptions cross AppDomain or managed/native boundaries (Managed only)" in Tools > Options > Debugging > General.

    The other one is just "ArgumentOutOfRangeException". To stop seeing this one, you need to check "Enable Just My Code" in Tools > Options > Debugging > General.

    0 讨论(0)
提交回复
热议问题