Bug 1126 - Using a non-registered managed type in IB throws an exception with an improvable exception message
Summary: Using a non-registered managed type in IB throws an exception with an improva...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: Highest normal
Target Milestone: ---
Assignee: Alan McGovern
Depends on:
Reported: 2011-09-29 04:52 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2012-01-20 06:38 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Comment 1 Rolf Bjarne Kvinge [MSFT] 2011-09-29 17:13:22 UTC
Curiously it has already happened to somebody else too:

Comment 2 Mikayla Hutchinson [MSFT] 2011-09-29 19:49:05 UTC
Yeah, we absolutely shouldn't show the stack trace. Instead of throwing exceptions, we should collect errors on a BuildResult and report them at the end of the sync.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2012-01-16 18:57:27 UTC
This looks a lot better to me.
Comment 5 Mikayla Hutchinson [MSFT] 2012-01-16 19:20:09 UTC
RegisterAttribute should have a parameter; the automatic name is unlikely to work.
Comment 6 Alan McGovern 2012-01-17 06:51:22 UTC
Pushed in commit 74cc563676. Feel free to tweak the message if required. I mentioned two ways the error can be fixed, 1) But a [Register] on the type if it exists or 2) Use [Register ("Whatevername")] on any other type.
Comment 7 Mikayla Hutchinson [MSFT] 2012-01-17 14:53:49 UTC
Not correct, you need the "Whatevername" argument unless the type is not in a namespace, which is very rare.
Comment 8 Alan McGovern 2012-01-20 06:38:29 UTC