c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
asp.net MVC

[Solved] The associated metadata type for type object contains the following unknown properties or fields.

| | ASP-NET , CSharp , MVC

I got the following error while running the application, later I found a solution for that. This is due the partial class properties are not found in the main class.

I removed the column field’s likesCount and OutputHtml from the table and updating the model using entity framework. But I haven’t removed the properties from the partial class.





associated metadata type for type contains the following unknown properties or fields

Solution:

I removed the unwanted properties likesCount and OutputHtml from the partial class. The problem was resolved and working fine.