Bug 13004 - System.ComponentModel.DataAnnotations.UrlAttribute not found
Summary: System.ComponentModel.DataAnnotations.UrlAttribute not found
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-07-02 06:50 UTC by Erik Schierboom
Modified: 2014-11-25 04:47 UTC (History)
3 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 GitHub or Developer Community 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:

Description Erik Schierboom 2013-07-02 06:50:14 UTC
The `System.ComponentModel.DataAnnotations.UrlAttribute` class is not found in Mono 3.0.12. To verify this, I have created a repro at https://github.com/ErikSchierboom/monodataannotations. That projects shows that decorating properties with the `System.ComponentModel.DataAnnotations.UrlAttribute` will cause Mono 3.0.12 to throw the following exception:

Missing method .ctor in assembly /tmp/root-temp-aspnet-0/1d156a4d/assembly/shadow/d3af320d/907b835b_43d4b156_00000002/MonoDataAnnotations.dll, type System.ComponentModel.DataAnnotations.UrlAttribute
Can't find custom attr constructor image: /tmp/root-temp-aspnet-0/1d156a4d/assembly/shadow/d3af320d/907b835b_43d4b156_00000002/MonoDataAnnotations.dll mtoken: 0x0a000017 

This error message shows that no constructor can be found for this class, which should be in the System.ComponentModel.DataAnnotations namespace.