title: "Cannot load script for execution" for script contains web reference in ssis package in console mode
body: <p>I want to execute a script in case of any error occurrence in my package,When i run my package in <code>development mode</code>,every thing goes well,but when i put it on <code>task scheduler</code> or run it through <code>console</code> i run into this error for this specific script </p>
  
  <blockquote>
    <p>Cannot load script for execution</p>
  </blockquote>
  
  <p>But when i <code>remove web reference</code> that is used for <code>sending Sms Message</code> and just put a text logger,every thing goes as supposed to be.</p>
  
  <p>By the way i'm using visual studio 2015</p>