Unfortunately I cannot do much right now to help you solve it. I recently upgraded to Lion, and now my MT environment is dead. I cannot compile any MT code with the current version of MT, and the new version is not supported by my license. That's right, I have to buy a $250 upgrade from Xamarin to even compile my existing code. In fact, today I discovered that I can't even open my existing solutions in the latest version of MD. I haven't done MT development for a while, so I'm not eager to spend the time and money right now. I'll probably bite the bullet and untangle this mess, but for now I'm dead.
The error you are getting is one that I have seen before. I reported it to Novell, maybe a couple of years ago, and they fixed it. I'd bet that MT has simply regressed. Here's what I suggest. Submit a bug report to Xamarin and attach your solution as a repo sample. In that past they have been attentive in most cases (although they stopped short of getting the simpler mapping syntax to work). Since Xamarin is the same team, you might get a good result.
Just yesterday someone asked my about MT dev experience. I told them MT is great, a real achievement, but there are a lot of sharp edges! This is a good example.
Cheers,
Tim
On Sunday, September 11, 2011 at 8:13 PM, Mike Orb wrote:
> Hey Tim. I hear you about MT. I hope Xamarin has turned the corner with the Novell license. I am listening to a presentation (http://www.infoq.com/presentations/QA-on-Mono) from their recent Monospace conference as I type this. They have 25 employees and are starting to really improve the product again. I am just doing a hobby project -- I develop C# desktop apps in my day job -- and was close to abandoning MT in favor of Objective C. But think MT will really start to take off now, if only because of Enterprise use.
>
> I will submit a ticket to Xamarin and let everyone know.
>
> Do you recall what version of MD and MT you previously used with success? I'd like to try downgrading my MD/MT versions.
>
> Thanks so much for getting back to me!
>
> Cheers,
> -Mike
>
http://bugzilla.xamarin.com/show_bug.cgi?id=770
This was was recently closed as fixed in next release :-).
-Mike
On Thursday, September 29, 2011 at 9:20 PM, mikeorb wrote:
> I installed the latest MonoTouch -- 4.2.2 -- and yay my Catnap code is
> finally working on a real device. Note I still have to use the more
> explicit mapping style code documented by Tim.
>
> Cheers,
> -Mike
>