Xamarin Exception - with new releases


#1

With the new versions of ShinobiControl 2.6 and Xamarin Studio 4.2.3, Xamarin.IOS 7.2.1.42 we get the following Exception.

MonoTouch.MonoTouchException: Cannot register two managed types (‘ShinobiEssentials.SEssentialsStyle, ShinobiEssentials, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null’ and ‘ShinobiGrids.SEssentialsStyle, ShinobiGrids, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null’) with the same native name (‘SEssentialsStyle’).

Sample code - Very simple use your SimpleGridSample add reference to ShinobiEssentials.dll and add this line to the ViewDidLoad

            SEssentialsSlidingOverlay slidingView = new SEssentialsSlidingOverlay (View.Frame, true);

Our project was working fine before upgrading!

Any solution?


#2

Xamarin changed the default registrar behavior as from this version. You can temporary change the default behavior again in Xamarin by adding the -registrar:legacy to the mtouch arguments.

But Shinobi should fix theses issues asap for their controls (bindings). Maybe they can make the binding project public on github then the community can help them out in case of such issues.


#3

To be correct:

--registrar:legacy


#4

Thanks - registrar:legacy fix the problem for now.


#5

This is an issue we are aware of, and hoping to fix soon. We saw it come through on the alpha channel, but it moved into stable much faster than we’d anticipated!