I am working on asp.net mvc3 website and when I publishmy site I faced thi problem :
Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.
Description: An unhandled exception occurred during the execution of the current web request. Please review the
stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.
-------
is it becouse of Database Initializer
for the membership ?
and how I intialize it ?
Is this problem happening during the perid of publishing? Or it's always happening once you start your program?
No matter which situation you've met with, please make sure that your real db and table should be the same name of what you've defined in your EntityFramework's models.
lifeshadows
Member
58 Points
33 Posts
Model compatibility cannot be checked
Oct 09, 2011 06:52 PM|LINK
I am working on asp.net mvc3 website and when I publishmy site I faced thi problem :
Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.
-------
is it becouse of Database Initializer for the membership ? and how I intialize it ?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Model compatibility cannot be checked
Oct 11, 2011 01:26 AM|LINK
Hello:)
Is this problem happening during the perid of publishing? Or it's always happening once you start your program?
No matter which situation you've met with, please make sure that your real db and table should be the same name of what you've defined in your EntityFramework's models.
Thx again