Bug 17610 - Entity Framework Internal compiler error: Method not found
Summary: Entity Framework Internal compiler error: Method not found
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-02-05 08:30 UTC by jonathan.campbell.1992
Modified: 2014-09-29 11:18 UTC (History)
1 user (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 jonathan.campbell.1992 2014-02-05 08:30:33 UTC
I get this error when trying to compile this code in MonoDevelop for lubuntu.

modelBuilder.Entity<HistoryRow>().Property(h => h.MigrationId).HasMaxLength(100).HasColumnName("migration_id");
modelBuilder.Entity<HistoryRow>().Property(h => h.ContextKey).HasMaxLength(100).HasColumnName("context_key");
modelBuilder.Entity<HistoryRow>().Property(h => h.Model).HasColumnName("metadata");

Error CS0584: Internal compiler error: Method not found: 'System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration.HasDatabaseGeneratedOption'. (CS0584) (Scar.World)

The code compiles fine in Visual Studio and Windows, so I'm guessing the problem is on Mono's end.
Comment 1 Marek Safar 2014-02-17 04:19:54 UTC
Mono probably does not have the latest EntityFramework assembly included. However we should issue better error message but to diagnose this I'll need a project which reproduces the issue, including reference assemblies.
Comment 2 Marek Safar 2014-09-29 11:18:14 UTC
No response