Hi
I am getting an exception when I try to debug
the sqlite-netFx-source-1.0.91.0 source code in VS 2010 on the following
line below...
DbProviderFactory factory = DbProviderFactories.GetFactory(factoryString);
The exception detail is reproduced below...
System.Reflection.TargetInvocationException was unhandled
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object
instance, RuntimeType fieldType, RuntimeType declaringType, Boolean&
domainInitialized)
at System.Reflection.RtFieldInfo.InternalGetValue(Object obj,
Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at System.Data.Common.DbProviderFactories.GetFactory(DataRow
providerRow)
at System.Data.Common.DbProviderFactories.GetFactory(String
providerInvariantName)
at test.TestCasesDialog.runButton_Click(Object sender, EventArgs e)
in
d:\Projects\Tucson\SQLiteInterop\sqlite-netFx-source-1.0.91.0\test\TestCasesDialog.cs:line
110
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at test.Program.Main(String[] args) in
d:\Projects\Tucson\SQLiteInterop\sqlite-netFx-source-1.0.91.0\test\Program.cs:line
69
InnerException: System.TypeInitializationException
Message=The type initializer for 'System.Data.SQLite.SQLiteFactory'
threw an exception.
TypeName=System.Data.SQLite.SQLiteFactory
InnerException: System.DllNotFoundException
Message=Unable to load DLL 'SQLite.Interop.dll': The specified
module could not be found. (Exception from HRESULT: 0x8007007E)
Source=System.Data.SQLite
TypeName=""
StackTrace:
at
System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_log_interop()
at System.Data.SQLite.SQLiteFactory..cctor() in
d:\Projects\Tucson\SQLiteInterop\sqlite-netFx-source-1.0.91.0\System.Data.SQLite\LINQ\SQLiteFactory_Linq.cs:line
47
InnerException:
Can someone help out with what could be causing this?
Best regards
Rishi
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users