我正在尝试选择要在 Windows Phone 7 中(在模拟器中)上传的一些文件,并且任何对 OpenFileDialog 的 ShowDialog 的尝试都会导致安全异常。正在从单击按钮的事件中调用打开文件对话框,但我得到一个
SecurityException
[FileDialog_ActiveScripting]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40806.0&File=System.Windows.dll&Key=FileDialog_ActiveScripting
在 OpenFileDialog.ShowDialog 的 Silverlight 版本中查找 SecurityException 指出错误是:
Active Scripting in Internet Explorer is disabled.
-or-
The call to the ShowDialog method was not made from user-initiated code.
任何人都对 Windows Phone 7 中的 OpenFileDialog 和 ShowDialog 有好运吗?