Last exception was:
Server Error in '/' Application.
Expression of type 'Nop.Data.Mapping.Customers.ExternalAuthenticationRecordMap' cannot be used for parameter of type 'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency]' of method 'System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add[Currency](System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency])'
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.ArgumentException: Expression of type 'Nop.Data.Mapping.Customers.ExternalAuthenticationRecordMap' cannot be used for parameter of type 'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency]' of method 'System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add[Currency](System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency])'
Source Error:
Line 42: {
Line 43: dynamic configurationInstance = Activator.CreateInstance(type);
Line 44: modelBuilder.Configurations.Add(configurationInstance);
Line 45: }
Line 46: //...or do it manually below. For example,
Source File: P:\nopCommerce\Libraries\Nop.Data\NopObjectContext.cs Line: 44
Stack Trace:
[ArgumentException: Expression of type 'Nop.Data.Mapping.Customers.ExternalAuthenticationRecordMap' cannot be used for parameter of type 'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency]' of method 'System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add[Currency](System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency])']
System.Linq.Expressions.Expression.ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arg, ParameterInfo pi) +5863583
System.Linq.Expressions.Expression.ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ReadOnlyCollection`1& arguments) +163
System.Linq.Expressions.Expression.Call(Expression instance, MethodInfo method, IEnumerable`1 arguments) +87
Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.GenerateCall(EXPRCALL pExpr) +225
Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Visit(EXPR pExpr) +48
Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.GenerateLambda(EXPRCALL pExpr) +30
Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Visit(EXPR pExpr) +48
Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.Rewrite(TypeManager typeManager, EXPR pExpr, IEnumerable`1 listOfParameters) +185
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateExpressionTreeFromResult(IEnumerable`1 parameters, ArgumentObject[] arguments, Scope pScope, EXPR pResult) +162
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding) +338
Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding) +126
Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(DynamicMetaObjectBinder action, RuntimeBinder binder, IEnumerable`1 args, IEnumerable`1 arginfos, DynamicMetaObject onBindingError) +912
Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember(DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion) +149
System.Dynamic.DynamicMetaObject.BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args) +46
System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel) +274
System.Runtime.CompilerServices.CallSiteBinder.BindCore(CallSite`1 site, Object[] args) +152
System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2(CallSite site, T0 arg0, T1 arg1) +366
Nop.Data.NopObjectContext.OnModelCreating(DbModelBuilder modelBuilder) in P:\nopCommerce\Libraries\Nop.Data\NopObjectContext.cs:44
System.Data.Entity.Internal.LazyInternalContext.CreateModelBuilder() +452
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +20
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +227
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +848
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +25
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +77
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +56
System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +61
Nop.Services.Tasks.ScheduleTaskService.GetAllTasks(Boolean showHidden) in P:\nopCommerce\Libraries\Nop.Services\Tasks\ScheduleTaskService.cs:84
Nop.Services.Tasks.TaskManager.Initialize() in P:\nopCommerce\Libraries\Nop.Services\Tasks\TaskManager.cs:30
Nop.Web.MvcApplication.Application_Start() in P:\nopCommerce\Presentation\Nop.Web\Global.asax.cs:75
[HttpException (0x80004005): Expression of type 'Nop.Data.Mapping.Customers.ExternalAuthenticationRecordMap' cannot be used for parameter of type 'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency]' of method 'System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add[Currency](System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency])']
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343
[HttpException (0x80004005): Expression of type 'Nop.Data.Mapping.Customers.ExternalAuthenticationRecordMap' cannot be used for parameter of type 'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency]' of method 'System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add[Currency](System.Data.Entity.ModelConfiguration.EntityTypeConfiguration`1[Nop.Core.Domain.Directory.Currency])']
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0