[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
Tue Oct 18 11:35:56 EDT 2011


Hi Danny,

Did you try "Don't Link"? Did that not fix it? I'm a bit confused.

Jeff

On Tue, Oct 18, 2011 at 9:49 AM, Danny Pronk <dpronk at probe-asp.eu> wrote:

> Hi Jef,
>
> In the meanwhile I started out with a clean project and just added the
> Sqlite assembly to it with some easy code, and this runs without any
> problem.
> However I am facing an exception in main.cs line 16
> (NSUnknownKeyException, setValue:forUNdifinedKey, this class is not key
> value coding-compliant for the key view. )
>
> I started this project as a universal project with a single view.
> Both views contain a uiwebview called webView and I attached the outlets
> as described. (Although i am referring in both cases to the same
> definition (since it is hooked up to the automatic generated view
> controller)
>
> Can you help me out please where I am going wrong?
>
> Regards
>
> Danny
>
> Op 18-10-11 15:31 schreef Jeff Stedfast <jeff at xamarin.com>:
>
> >Hi Danny,
> >
> >My apologies, I just looked at your original email again and saw
> >clearly that you obviously must have referenced it to get the error
> >you did.
> >
> >Looks like there is a missing method exception. This *might* indicate
> >that something is wrongly being linked out (by MonoTouch's linker).
> >Could you try disabling the linker in Project / <ProjectName> Options
> >/ iPhone Build and set the linker drop-down to "Don't Link"?
> >
> >Does that fix it? If so, it's a bug in our linker. Let us know either way.
> >
> >Jeff
> >
> >On Tue, Oct 18, 2011 at 12:47 AM, Danny Pronk <dpronk at probe-asp.eu>
> wrote:
> >> Hi  Jeff,
> >> Yes, i have added the reference to my project (reference->checked the
> >> mono.data.sqlite reference)
> >> Regards
> >> Danny
> >> Van: Jeff Stedfast <jeff at xamarin.com>
> >> Datum: Mon, 17 Oct 2011 18:24:36 -0400
> >> Aan: Danny Pronk <dpronk at probe-asp.eu>
> >> CC: "monotouch at lists.ximian.com" <monotouch at lists.ximian.com>
> >> Onderwerp: Re: [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, )
> >>
> >> 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/20111018/357e3fbd/attachment.html 


More information about the MonoTouch mailing list