Wednesday 15 August 2012

wpf - The null exception is caught in the method” MS.Internal.Data.PropertyPathWorker.RawValue(Int32 k)” and never thrown again -



The selectedUser is empty in the code below; I hope with the code given below, that I will put a blank exception, which I can handle in my code elsewhere for example:

The application Present. DissertationHandDedication + = This.Disppetor Exceptions Exceptions; Or AppDomain.CurrentDomain.UnhandledException + = this.CurrentDomainUnhandledException; // code example; The selected user name here is This.IsUserInRole = this.SelectedUser.UserRole;

Unfortunately, the blank exception method has been caught in ???? MS.Internal.Data.PropertyPathWorker.RawValue (Int32 k) A ???? And never throw it out.

I think this is a bug in the Net Library; I am not getting any useful information about the problem, any help would be appreciated!

Used Technologies:
Windows 7 x 64
.Net Framework 4.5
Visual Studio 2012 Update 2

Anderleyr:
WPF
entity framework
SQL server 2012

Call stack:

  'IsUserInRole' can not find value (type Boolean ') From' '(type' datagrid viewmodel '). BindingExpression: Path = IsUserInRole; Dataite = 'Data GridView Module' (hashcode = 221439 9 2); Target element 'checkbox' (name = ''); Target assets 'isChecked' (type 'Nullable' 1 ') goal InvocationException:' System.Reflection.TargetInvocationException: has thrown exception by a welcome goal --- & gt; System.NullReferenceException: The object reference is not set to an instance of an object. ... in a UserInterface.Settings.DataGridViewModel.get_IsUserInRole () ?? | Â ?? | \ SettingsModule \ UserSettingsView \ DataGridViewModel.cs :. Line 521 --- Internal Exception Stack Trace --- Termination on System.RuntimeMethodHandle. InvokeMethod (Object target, Object [] arguments, Signature sig, Boolean manufacturer) [SystemkReflectionkRuntimeMethodInfokInvoke (object obj in (object obj, object System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal] Parameter [] arguments object) [BindingFlags invokeAttr, binder binder, object System.Reflection.RuntimePropertyInfo.GetValue] parameter [at CultureInfo culture) (object obj, MS.Internal.Data.PropertyPathWorker.GetValue (commodity item, Int32 level) in MS] Index ) object .Internal.Data.PropertyPathWorker.RawValue (Int32 k) '  

Thank you

Am Pwad is swalled by WPF which looks like is by design. More about this here:

No comments:

Post a Comment