title: Adding System.Data.SQLite reference in IronPython
body: <p>I'm trying to use clr.AddReference to add sqlite3 functionality to a simple IronPython program I'm writing; but everytime I try to reference System.Data.SQLite I get this error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "", line 1, in 
    IOError: System.IO.IOException: Could not add reference to assembly System.Data.SQLite<br>
       at Microsoft.Scripting.Actions.Calls.MethodCandidate.Caller.Call(Object[] args, Boolean&amp;shouldOptimize)<br>
       at IronPython.Runtime.Types.BuiltinFunction.BuiltinFunctionCaller<code>2.Call1(CallSite site, CodeContext context, TFuncType func, T0 arg0)<br>
       at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)<br>
       at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )<br>
       at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)<br>
       at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<br>
       at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)<br>
       at IronPython.Runtime.FunctionCode.Call(CodeContext context)<br>
       at IronPython.Runtime.Operations.PythonOps.QualifiedExec(CodeContext context, Object code, PythonDictionary globals, Object locals)<br>
       at Microsoft.Scripting.Interpreter.ActionCallInstruction</code>4.Run(InterpretedFrame frame)<br>
       at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)</p>
  </blockquote>
  
  <p>I've been testing out the imports and references in the interpreter mainly, and these are the lines I test:</p>
  
  <blockquote>
    <p>import sys<br>
    import clr<br>
    sys.path.append("C:/Program Files (x86)/SQLite.NET/bin")<br>
    clr.AddReference("System.Data.SQLite")  </p>
  </blockquote>
  
  <p>The error happens after the clr.AddReference line is entered. How would I add System.Data.SQLite properly?</p>