title: Open File In Silverlight 4 File operation not permitted
body: <p>I have a Silverlight web application(4.0) with a select file open dialog, however I get this error when the user selects a file : "File operation not permitted Access to path '' is denied" 
  When I try to debug it then I get this security exception "Dialogs must be user-initiated."
  Is there a way around this? Has anyone has tried doing this in Silverlight?</p>
  
  <p>Here is my code so far which hasn't worked:</p>
  
  <pre><code>OpenFileDialog dlg = new OpenFileDialog
  {
      Multiselect = false,
      Filter = "All files|*.*"
  };
  bool? userClickedOK = dlg.ShowDialog();
  
  if (userClickedOK == true)
  {
      textBox1.Text =  dlg.File.FullName;
  }
  </code></pre>