I am working with Silverlight 4.0 and I have used Clipboard(System.Windows) class for copying error from the site.
It is working fine in my machine but when I am trying to access it from Others machine, I am getting follwing Error :
"[Clipboard_AccessNotAllowed] 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=4.0.60310.0&File=System.Windows.dll&Key=Clipboard_AccessNotAllowed"
My code is as below :
private void SetMessageToClipboard(string sMessage)
{
try
{
Clipboard.SetText(sMessage);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
This error will be disappeared once you select 'Remember my answer' in popup of Silverlight.
Is it related to ClientPolicy.XML file? I have not added it. But I have not found anything in ClientPolicy.XML which can be helpful for me.
Please suggest.