[MVC]: Migrate an existing project using ASP.NET Identity 1.0 to 2.0 Complete

Scenario: You have an existing ASP.NET MVC project that using previous version of ASP.NET Identity (v1.0.0). You want to use new features which announced in ASP.NET Identity 2.0 RTM versions: Two-Factor Authentication Account Lockout Account Confirmation Password Reset Security Stamp (Sign out everywhere) Make the type of Primary Key be…

Continue Reading [MVC]: Migrate an existing project using ASP.NET Identity 1.0 to 2.0 Complete

EF 4: Get Stored Procedures or View with System.NullReferenceException

Error: System.NullReferenceException: Object reference not set to an instance of an object.at System.Data.EntityKey.AddHashValue(Int32 hashCode, Object keyValue)at System.Data.EntityKey.GetHashCode()at System.Collections.Generic.GenericEqualityComparer`1.GetHashCode(T obj)at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)at System.Data.Objects.ObjectStateManager.TryGetEntityEntry(EntityKey key, EntityEntry& entry)at System.Data.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly[TEntity](Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet)at lambda_method(Closure , Shaper )at System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)at System.Data.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext() Problem: The Views/Stored Procedure was returning a null…

Continue Reading EF 4: Get Stored Procedures or View with System.NullReferenceException

SharePoint 2010 BDC using EF4: Troubleshooting

This article listing common errors when develop CRUD Business Connectivity Services solution in SharePoint 2010 using ADO.NET Entity Data Model (EF4). Error 1: ConnectionStrings “The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.'”."ADO.Net Entity Framework Connection…

Continue Reading SharePoint 2010 BDC using EF4: Troubleshooting