1

Silverlight ページにハイパーリンク ボタンがあります。NavigateUri プロパティは、UNC フォルダー パス (\\myserver\folder) に設定されます。Silverlight 4 では、リンクをクリックすると、フォルダーが開きます (ユーザーにアクセスを許可するように求めた後)。Silverlight 5 では、リンクをクリックすると JavaScript エラーが発生します (以下を参照)。これは Silverlight 5 の新しい制限ですか? 回避策はありますか?

ありがとう

Webpage error details


Message: Unhandled Error in Silverlight Application Attempted to perform an unauthorized operation.   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.NavigateToSafeURI(String location, String target, Boolean checkUserInitiatedAction)
at MS.Internal.NavigationHelper.Navigate(Boolean checkUserInitiatedAction)
at System.Windows.Controls.HyperlinkButton.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)
Line: 1
Char: 1
Code: 0
4

1 に答える 1