[MonoTouch] Lion, MD 2.8.1, MT 5, Xcode 4.2 (Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Data.Sqlite, Version=2.0.5.0, Culture=neutral, )

Jeff Stedfast jeff at xamarin.com
Mon Oct 17 18:24:36 EDT 2011


Hi Danny,

Have you added a reference to Mono.Data.SQLite in your project?

Jeff

On Mon, Oct 17, 2011 at 5:33 PM, Danny Pronk <dpronk at probe-asp.eu> wrote:

> Hi,
>
> Does anybody have any experience with the following :
> I have updated my system to Lion, Xcode 4.2 and the latest MonoTouch,
> MonoDevelop
> Old projects (converted) compile fine !!
> However a brand new project gives me the following error. Don't have a clue
> why this fails on iOS SDK 5.0 + Monotouch for iOS5
> Or better said, how can i FIX this?
>
>
> Unhandled Exception: System.IO.FileNotFoundException: Could not load file
> or assembly 'Mono.Data.Sqlite, Version=2.0.5.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
> File name: 'Mono.Data.Sqlite, Version=2.0.5.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756'
>   at eDis.Database.Initialize..ctor () [0x00017] in
> /Users/dpronk/Projects/eDis/eDis/Database/Initialize.cs:15
>   at eDis.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app,
> MonoTouch.Foundation.NSDictionary options) [0x00000] in
> /Users/dpronk/Projects/eDis/eDis/AppDelegate.cs:72
>   at (wrapper managed-to-native)
> MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
>   at MonoTouch.UIKit.UIApplication.Main (System.String[] args,
> System.String principalClassName, System.String delegateClassName) [0x00042]
> in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
>   at eDis.Application.Main (SysMissing method CreateFile in assembly
> /Users/dpronk/Projects/eDis/eDis/bin/iPhoneSimulator/Debug/eDis.exe, type
> Mono.Data.Sqlite.SqliteConnection
> Missing method CreateFile in assembly
> /Users/dpronk/Projects/eDis/eDis/bin/iPhoneSimulator/Debug/eDis.exe, type
> Mono.Data.Sqlite.SqliteConnection
> tem.String[] args) [0x00000] in
> /Users/dpronk/Projects/eDis/eDis/Main.cs:16
> [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could
> not load file or assembly 'Mono.Data.Sqlite, Version=2.0.5.0,
> Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its
> dependencies.
> File name: 'Mono.Data.Sqlite, Version=2.0.5.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756'
>   at eDis.Database.Initialize..ctor () [0x00017] in
> /Users/dpronk/Projects/eDis/eDis/Database/Initialize.cs:15
>   at eDis.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app,
> MonoTouch.Foundation.NSDictionary options) [0x00000] in
> /Users/dpronk/Projects/eDis/eDis/AppDelegate.cs:72
>   at (wrapper managed-to-native)
> MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
>   at MonoTouch.UIKit.UIApplication.Main (System.String[] args,
> System.String principalClassName, System.String delegateClassName) [0x00042]
> in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
>   at eDis.Application.Main (System.String[] args) [0x00000] in
> /Users/dpronk/Projects/eDis/eDis/Main.cs:16
>
>
> Regards Danny
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111017/399531ac/attachment-0001.html 


More information about the MonoTouch mailing list