title: Can't reference SSIS variables in script task
body: <p>I have a very simple SSIS package and an absurdly simple Script task</p>
  
  <pre><code>    var x = Dts.Variables["User::OrderPath"];
  </code></pre>
  
  <p>That fails with:</p>
  
  <blockquote>
    <p>The element cannot be found in a collection. This error happens when
    you try to retrieve an element from a collection on a container during
    execution of the package and the element is not there.</p>
  </blockquote>
  
  <p>I have a variable, <code>OrderPath</code>, that is scoped to the package.  Any time I try to add the variable to the script's ReadOnlyVariables, it disappears whenever I execute the task.</p>
  
  <p>This really shouldn't be this difficult so I assume I'm missing something monumentally basic.  Any idea what that might be?</p>