【发布时间】:2010-03-22 03:31:46
【问题描述】:
我正在尝试在 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 有什么好运吗?
【问题讨论】:
标签: silverlight windows-phone-7