From Silverlight 5 and above we do not support true OOB with ElevatedTrust. If you run the app. as OOB in browser the ElevatedTrust will remain and the app. will function.
In order to overcome this problem you have to manually include the needed dlls and update the "AppManifest.xml" so Test Studio will not need to inject them.
How to proceed:
Three additional dlls should be present in the *.xap file:
ArtOfTest.SLExtension.dll is something we ship so it should be in the “(install)\Bin” folder
Telerik.WebAii.Controls.Xaml.CustomTypes.dll should be in the “(install)\Bin\Translators\CustomSilverlightTypes” folder
System.Windows.dll is part of the SL framework but the reference needs to be with “CopyLocal” option set to “True” so it is included in the xap
In the “AppManifest.xml” the “ExternalCallersFromCrossDomain” should be set to “ScriptableOnly” as shown below: