Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 11, 2011 01:26 AM by Decker Dong - MSFT
Oct 09, 2011 06:52 PM|LINK
I am working on asp.net mvc3 website and when I publishmy site I faced thi problem :
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 ?
Oct 11, 2011 01:26 AM|LINK
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.