Server Error in '/' Application.

The 'EmailId' property on 'EmailAddress' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.Guid'.

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 'EmailId' property on 'EmailAddress' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.Guid'.

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 'EmailId' property on 'EmailAddress' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.Guid'. ]
   System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +369
   lambda_method(Closure , Shaper ) +447
   System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +249
   lambda_method(Closure , Shaper ) +404
   System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +381
   System.Data.Entity.Core.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +88
   System.Data.Entity.Core.Objects.DataClasses.RelatedEnd.Merge(IEnumerable`1 collection, MergeOption mergeOption, Boolean setIsLoaded) +288
   System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1.Load(List`1 collection, MergeOption mergeOption) +286
   System.Data.Entity.Core.Objects.DataClasses.RelatedEnd.DeferredLoad() +436
   System.Data.Entity.Core.Objects.Internal.LazyLoadBehavior.LoadProperty(TItem propertyValue, String relationshipName, String targetRoleName, Boolean mustBeNull, Object wrapperObject) +127
   System.Data.Entity.Core.Objects.Internal.<>c__DisplayClass7`2.<GetInterceptorDelegate>b__1(TProxy proxy, TItem item) +152
   System.Data.Entity.DynamicProxies.CommerceShopper_4EDA9E045455A8272C0C9D4D561AC7406787A895F8C75130231B2E16341F21AE.get_EmailAddresses() +49
   Musicnotes.Data.CommerceShopper.get_IsSubscribedToMusicnotesNewsletter() in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Data\CommerceShopperRewards.cs:13
   Musicnotes.Application.ViewModelBuilders.SiteShopperViewModelBuilder.BuildViewModel() in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ViewModelBuilders\SiteShopperViewModelBuilder.cs:46
   Musicnotes.Application.ViewModelBuilders.LayoutViewModelBuilderBase`1.BuildViewModel(T viewModel) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ViewModelBuilders\LayoutViewModelBuilderBase.cs:53
   Musicnotes.Application.ViewModelBuilders.PageViewModelBuilderBase`1.BuildViewModel(T viewModel) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ViewModelBuilders\PageViewModelBuilderBase.cs:56
   Musicnotes.Application.ViewModelBuilders.ErrorPageViewModelBuilder.BuildViewModel(Exception e) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ViewModelBuilders\ErrorPageViewModelBuilder.cs:36
   Musicnotes.Controllers.ErrorController.Index(String aspxerrorpath, Int32 statusCode) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\wwwroot\Controllers\ErrorController.cs:35
   Castle.Proxies.Invocations.ErrorController_Index.InvokeMethodOnTarget() +147
   Castle.DynamicProxy.AbstractInvocation.Proceed() +110
   Musicnotes.Application.ExceptionLogger.Intercept(IInvocation invocation) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ExceptionLogger.cs:56
   Castle.DynamicProxy.AbstractInvocation.Proceed() +447
   Castle.Proxies.ErrorControllerProxy.Index(String aspxerrorpath, Int32 statusCode) +185
   lambda_method(Closure , ControllerBase , Object[] ) +197
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +209
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +40
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +77
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +43
   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +72
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +387
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +43
   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +30
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +2340
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   Castle.DynamicProxy.AbstractInvocation.Proceed() +110
   Musicnotes.Application.ExceptionLogger.Intercept(IInvocation invocation) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ExceptionLogger.cs:56
   Castle.DynamicProxy.AbstractInvocation.Proceed() +447
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   Castle.Proxies.ErrorControllerProxy.EndExecute_callback(IAsyncResult asyncResult) +39
   Castle.DynamicProxy.AbstractInvocation.Proceed() +110
   Musicnotes.Application.ExceptionLogger.Intercept(IInvocation invocation) in C:\BuildAgent\work\dac5058dfd42cc39\musicnotes_mn1\Musicnotes.Application\ExceptionLogger.cs:56
   Castle.DynamicProxy.AbstractInvocation.Proceed() +447
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +39
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +6641
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +224
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1366


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4108.0
♩♩♩♩
...