title: In SSIS package passing parameter value to variable gives runtime error
body: <p>I am trying to build a package with a Script Task and load parameter values to local variables. </p>
  
  <p>I created Project and package Parameters.
  <a href="http://i.stack.imgur.com/pmwiO.jpg" rel="nofollow">enter image description here</a></p>
  
  <p>and called them into the script task editor
  In the script Editor I entered the following script
  <a href="http://i.stack.imgur.com/pMWe9.jpg" rel="nofollow">enter image description here</a>
  Build show success!
  Executing the package I get a RunTime error</p>
  
  <p>at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()</p>
  
  <p>And  That unfortunately I don't understand the Message.
  Need help!</p>
  
  <p>Thanks
  Dov</p>