asp.net mvc5 scaffolding Unable to retrive metadata for ...Ambiguous match found

asp.net-mvc-5 asp.net-mvc-scaffolding entity-framework-6 scaffolding

Question

Issue: I receive the following error while attempting to create a controller from an EF codefirst context:

There was an error running the selected code generator.Unable to retrieve  metadata for Model.class name.Ambiguous match found.

Error Image, please

What did I do?

  1. I tried updating or downgrading every package because my model data was in a separate assembly, but nothing changed.
  2. After that, I merged my Model assembly into the Website project, but the issue remained.
  3. I generated clean projects and scaffolding for each class after doing extensive googling and other research, however it seems that just one class had this issue.
  4. In that class, I annotated each property before unannotating it one at a time to look for errors.
  5. Located it! For this characteristic, a mistake happens.public bool ISActive { get; set; }

I was shocked to discover how do you grow on the internet?. What do you think of the remedy?

1
2
3/27/2018 6:17:18 AM

Accepted Answer

ZZZ_tmp
0
7/22/2016 7:34:23 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow