Server Error in '/' Application.

The 'Views' property on 'SocialUser' could not be set to a 'System.Int64' value. You must set this property to a non-null value of type 'System.Int32'.

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.InvalidOperationException: The 'Views' property on 'SocialUser' could not be set to a 'System.Int64' value. You must set this property to a non-null value of type 'System.Int32'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The 'Views' property on 'SocialUser' could not be set to a 'System.Int64' value. You must set this property to a non-null value of type 'System.Int32'. ]
   System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +314
   lambda_method(Closure , Shaper ) +6166
   System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +249
   lambda_method(Closure , Shaper ) +423
   System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +381
   System.Data.Entity.Core.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +88
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +243
   Temi.mk.Default.LoadHeader(String pageName, String id) in C:\Projects\Temi.mk\Default.aspx.cs:240
   Temi.mk.Default.Page_Load(Object sender, EventArgs e) in C:\Projects\Temi.mk\Default.aspx.cs:48
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4057.0