1
The error is generated using VS 2012. When I try to create the Controller for my News using the Entity framework, I have tried several ways. o My database you can see in the server explorer on the left.
I’m trying to create the controller for CRUDS.
"Unable to Retrieve Metadata for "Braverybranded.ASP.Models.News". Object Reference not set to an instance of an Object."
You have already compiled the project?
– André Leria
@Andréleria yes
– Luiz Negrini
@Luiznegrini Apparently the approach is Database-First. You can see the tables through your connection to the database there on
Server Explorer
?– Leonel Sanches da Silva
@I got it, I got it! But I’ll inform you that the error was the same folder where the model was, I took it from the "Area" Admin and put it in the default model folder created by the project and everything worked! Thanks in advance!
– Luiz Negrini
Okay, I’m just asking you to mark your response on the green icon as accepted, for the benefit of everyone in the community. Thank you!
– Leonel Sanches da Silva