Friday, December 30, 2011

Allow Silverlight to access clipboard after having clicked “NO” before

Silverlight applications can put information into the computer’s clipboard. But only when the user grants the application access to it.

So while using Silverlight apps online you might have come across this dialog:

image

I accidentally clicked “no” once and had lots of trouble to reverse this step because I haven’t been prompted this question again.

Even google was no help in this case. Neither was re-installing Silverlight.

Finally a heroic search in the registry gave a solution. There is a place in the registry where Silverlight places the information about clipboard access.
HKEY_CURRENT_USER\Software\AppDataLow\Software\Microsoft\Silverlight\Permissions

Inside that Key is a subfolder for each Silverlight application that has prompted this question. If you delete the proper folder, you will be prompted again the next time.

image

5 comments:

  1. There is a easy way.

    Right click, select "SilverLight", select "Permissions" Tab. Select the desired entry, then click on Allow

    ReplyDelete
    Replies
    1. Hey Kris,

      thank you for that hint. Seems as if I chose the "hard way" ;)
      But the registry steps still work if a developer disabled the Silverlight context menu. The Windows Azure Portal (http://windows.azure.com) for example does not provide a context menu.

      Nico

      Delete
  2. context menu also able from Windows "Start" button (type "Silverlight" into the search box).

    ReplyDelete
  3. i have a datagrid and i want to copy its contents and paste it in an excel sheet but as soon as i press ctrl+c the clipboard dialog box appears. Now my question is, is it possible to disallow this dailog box..if yes, then please tell me how ..

    ReplyDelete
  4. Your post has been very useful.
    I assume the value for "YES" is 17 and "NO" is 0.
    Thank you

    ReplyDelete