CSLA 4.1 / Silverlight exception: "Attempt by method 'Csla.Xaml.TriggerAction.CallMethod(System.Object, System.EventArgs)' to access method 'MyNamespace.SL.CustomerCallPlanVM.SetDay(System.Object, Csla.Xaml.ExecuteEventArgs)' failed."
This same exact xaml works fine in my WPF client:
<csla:TriggerAction TargetControl="{Binding ElementName=chkMonday}"
TriggerEvent="Checked"
DataContext="{Binding Source={StaticResource customerCallPlanViewSource}}"
MethodName="SetDay"
MethodParameter="Monday"/>
Here is the code-behind in the VM :
public void SetDay(object sender, ExecuteEventArgs e) { ... }
Note that a breakpoint in the first line of SetDay never gets hit. Also - just for testing I've taken out all code inside the SetDay method and just put in a simply message box and still get the exception. In addition, I tried removing the parameters from the method and the corresponding one from the xaml, and still get the same thing.
In case this helps, here is the stack trace:
Copyright (c) Marimer LLC