title: Speech SDK - LoadGrammar() raising UnauthorizedAccessException
body: <p>I'm trying to use Speech Recognition lib on C# (4.5) on my Windows 8.</p>
  
  <p>I installed "Microsoft Speech Platform SDK 11" and I'm receiving an exception using LoadGrammar.</p>
  
  <p>My program:</p>
  
  <pre><code>using System;
  using System.Speech.Recognition;
  using System.Speech.Synthesis;
  using System.Collections.Generic;
  using System.Globalization;
  using System.Linq;
  using System.Text;
  using System.Threading;
  using System.Threading.Tasks;
  
  namespace SpeechRecognition
  {
      class Program
      {
          static void Main(string[] args)
          {
              // Create an in-process speech recognizer for the en-US locale.
              using (SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine())
              {
                  // Create and load a dictation grammar.
                  // An unhandled exception of type 'System.UnauthorizedAccessException' occurred in System.Speech.dll
  
                  recognizer.LoadGrammar(new DictationGrammar());
  
                  // Add a handler for the speech recognized event.
                  recognizer.SpeechRecognized += 
                    new EventHandler&lt;SpeechRecognizedEventArgs&gt;(recognizer_SpeechRecognized);
  
                  // Configure input to the speech recognizer.
                  recognizer.SetInputToDefaultAudioDevice();
  
                  // Start asynchronous, continuous speech recognition.
                  recognizer.RecognizeAsync(RecognizeMode.Multiple);
  
                  // Keep the console window open.
                  while (true)
                  {
                    Console.ReadLine();
                  }
              }
          }
  
          // Handle the SpeechRecognized event.
          static void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
          {
              Console.WriteLine("Recognized text: " + e.Result.Text);
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>An unhandled exception of type 'System.UnauthorizedAccessException' occurred in System.Speech.dll</p>
  </blockquote>
  
  <p>Stack Trace:</p>
  
  <blockquote>
    <p>em
    System.Speech.Recognition.RecognizerBase.Initialize(SapiRecognizer
    recognizer, Boolean inproc)    em
    System.Speech.Recognition.SpeechRecognitionEngine.get_RecoBase()    em
    System.Speech.Recognition.SpeechRecognitionEngine.LoadGrammar(Grammar
    grammar)    em SpeechRecognition.Program.Main(String[] args) na
    e:\TestCenter\SpeechRecognition\SpeechRecognition\Program.cs:linha 23 
    em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
    String[] args)    em
    Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br>
    em System.Threading.ExecutionContext.RunInternal(ExecutionContext
    executionContext, ContextCallback callback, Object state, Boolean
    preserveSyncCtx)    em
    System.Threading.ExecutionContext.Run(ExecutionContext
    executionContext, ContextCallback callback, Object state, Boolean
    preserveSyncCtx)    em
    System.Threading.ExecutionContext.Run(ExecutionContext
    executionContext, ContextCallback callback, Object state)</p>
  </blockquote>
  
  <p>I tested in Win7 and Win8, but no one is working.</p>
  
  <p>Can anybody give-me some help?</p>