title: Accessing special folders from Silverlight OutOfBrowser application
body: <p>Inside my Silverlight 4.0 application (with elevated trust level), I'm trying to access the common templates folder, using the code below:</p>
  
  <pre><code>var folder = Environment.GetFolderPath(Environment.SpecialFolder.Templates);
  </code></pre>
  
  <p>However, such code throwsSystem.Security.SecurityException:</p>
  
  <pre><code>System.Security.SecurityException was unhandled by user code
    Message=File operation not permitted. Access to path '' is denied.
    StackTrace:
         at System.IO.FileSecurityState.EnsureState()
         at System.Environment.InternalGetFolderPath(SpecialFolder folder, SpecialFolderOption option, Boolean checkHost)
         at System.Environment.GetFolderPath(SpecialFolder folder)
  </code></pre>
  
  <p>It seems that accessing any folder besides "My Documents" for the current user would throw this kind of exception - Since the SpecialFolder enum has more values, what are they good for? Is there any way to verify which folder this enum/method looks for, or any other way to access it?</p>