Tuesday, September 2, 2014

Updating Xamarin.Forms.Labs to beta6 broke my project

I updated Xamarin.Forms to 1.2.2.6243 and also updated Xamarin.Forms.Labs to beta6. This broke my app at runtime with the following error.

2014-09-02 08:14:06.189 FormsTemplateiOS[4440:70b] Could not register the assembly 'Xamarin.Forms.Labs.iOS': System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

Simple solution though, just check your project file for the iOS project and make sure the hintpath points to the correct package.

   
      ..\..\packages\Xamarin.Forms.Labs.1.1.1-beta6\lib\MonoTouch\Xamarin.Forms.Labs.dll
   

   
      ..\..\packages\Xamarin.Forms.Labs.1.1.1-beta6\lib\MonoTouch\Xamarin.Forms.Labs.iOS.dll
   

3 comments:

  1. Having the same issue with Xamarin.Forms 1.3.0 and Xamarin.Forms.Labs. Did you find a solution?

    Thanks

    ReplyDelete
    Replies
    1. Hi! If it's the same error message you need to open up the iOS project file and make sure the hint path is pointing to the correct path on disk.

      When updating nuget-packages in general the path doesn't always get updated. All nuget packages resides in the Packages folder in the solution root folder så any binaries that your project requires from nuget will be somewhere in that folder.

      If you feel like it you can mail me the project and I can take a look at the specific problem. My mail is johan.kson@gmail.com.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete