Declined
Last Updated: 05 Apr 2023 14:09 by ADMIN
ADMIN
Cody
Created on: 04 Jul 2013 18:16
Type: Feature Request
0
Cannot automate Silverlight app that calls Marshal.SizeOf
If a Silverlight 5 OOB application makes any elevated trust calls, such as Marshal.SizeOf and you try to automate it with Test Studio you will get an error like this:

System.MethodAccessException was unhandled by user code
  Message=Attempt by security transparent method 'FontDialog.FontInteropHelper.ShowFontDialog()' to access security critical method 'System.Runtime.InteropServices.Marshal.SizeOf(System.Object)' failed.
  StackTrace:
       at FontDialog.FontInteropHelper.ShowFontDialog()
       at FontDialog.MainPage.Button_Click(Object sender, RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
  InnerException:
1 comment
ADMIN
Konstantin Petkov
Posted on: 03 Oct 2013 07:15
Hello,

The problem is specific to a dialog in the customer OOB application which Test Studio cannot automate. Unfortunately attaching the recorder breaks the dialog.

I'm afraid we cannot resolve the problem, at least in near future.

Regards!