[Mono-list] Missing or incorrect header for method .ctor

Avinash D'Silva avinash.roshan.dsilva at gmail.com
Sat Sep 3 23:33:53 UTC 2016


I have the following code. (using monoDevelop 5.1.0/ Mono 4.4.2.11)

Line of code that is causing trouble:
m_dbConnection = new SQLiteConnection ("Data Source=file.db");

External Package used: System.Data.SQLite.Core

Below is the entire exception.

System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.InvalidProgramException: Missing
or incorrect header for method .ctor
  at System.Data.SQLite.SQLiteConnection..ctor (System.String
connectionString, Boolean parseViaFramework) [0x0000f] in <filename
unknown>:0
  at System.Data.SQLite.SQLiteConnection..ctor (System.String
connectionString) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
System.Data.SQLite.SQLiteConnection:.ctor (string)
  at Krore.SQlite.open (System.String fileName) [0x00030] in
/home/silva/test/Krore/Krore/applib/SQlite.cs:28
  at Krore.NewConDialog.addConnection (System.Object sender,
System.EventArgs e) [0x00030] in
/home/silva/test/Krore/Krore/NewConDialog.cs:19
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00038] in <filename unknown>:0
  --- End of inner exception stack trace ---

I also tried changing the target platform and target platform several
times, yet I get the same error.


-- 
-
*Warm regards,*
*Avinash D' Silva*


☎ Mobile   | +353 892210993
✉ Gmail     | avinash.roshan.dsilva at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20160904/feee531b/attachment.html>


More information about the Mono-list mailing list