Guest User

IdentityServerMySQL-Error

a guest
Nov 25th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.78 KB | None | 0 0
  1.     Seeding database...
  2.     info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
  3.           Entity Framework Core 2.1.4-rtm-31024 initialized 'PersistedGrantDbContext' using provider 'MySql.Data.EntityFrameworkCore' with options: MigrationsAssembly=IdentityServer4WithMySQL
  4.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  5.           Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  6.           SELECT 1 FROM information_schema.tables
  7.           WHERE table_name = '
  8.           __EFMigrationsHistory' AND table_schema = DATABASE()
  9.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  10.           Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  11.           SELECT 1 FROM information_schema.tables
  12.           WHERE table_name = '
  13.           __EFMigrationsHistory' AND table_schema = DATABASE()
  14.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  15.           Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  16.           SELECT `MigrationId`, `ProductVersion`
  17.           FROM `__EFMigrationsHistory`
  18.           ORDER BY `MigrationId`;
  19.     info: Microsoft.EntityFrameworkCore.Migrations[20405]
  20.           No migrations were applied. The database is already up to date.
  21.     info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
  22.           Entity Framework Core 2.1.4-rtm-31024 initialized 'ConfigurationDbContext' using provider 'MySql.Data.EntityFrameworkCore' with options: MigrationsAssembly=IdentityServer4WithMySQL
  23.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  24.           Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  25.           SELECT 1 FROM information_schema.tables
  26.           WHERE table_name = '
  27.           __EFMigrationsHistory' AND table_schema = DATABASE()
  28.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  29.           Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  30.           SELECT 1 FROM information_schema.tables
  31.           WHERE table_name = '
  32.           __EFMigrationsHistory' AND table_schema = DATABASE()
  33.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  34.           Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  35.           SELECT `MigrationId`, `ProductVersion`
  36.           FROM `__EFMigrationsHistory`
  37.           ORDER BY `MigrationId`;
  38.     info: Microsoft.EntityFrameworkCore.Migrations[20405]
  39.           No migrations were applied. The database is already up to date.
  40.     info: Microsoft.EntityFrameworkCore.Database.Command[20101]
  41.           Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  42.           SELECT CASE
  43.               WHEN EXISTS (
  44.                   SELECT 1
  45.                   FROM `Clients` AS `c`)
  46.               THEN ('1') ELSE ('0')
  47.           END
  48.     fail: Microsoft.EntityFrameworkCore.Query[10100]
  49.           An exception occurred in the database while iterating the results of a query for context type 'IdentityServer4.EntityFramework.DbContexts.ConfigurationDbContext'.
  50.           System.InvalidOperationException: No coercion operator is defined between types 'System.Int16' and 'System.Boolean'.
  51.              at System.Linq.Expressions.Expression.GetUserDefinedCoercionOrThrow(ExpressionType coercionType, Expression expression, Type convertToType)
  52.              at System.Linq.Expressions.Expression.Convert(Expression expression, Type type, MethodInfo method)
  53.              at System.Linq.Expressions.Expression.Convert(Expression expression, Type type)
  54.              at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.CreateGetValueExpression(Expression dataReaderExpression, Expression indexExpression, TypeMaterializationInfo materializationInfo, Boolean box)
  55.              at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.<>c.<CreateArrayInitializer>b__12_0(TypeMaterializationInfo mi, Int32 i)
  56.              at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
  57.              at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
  58.              at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
  59.              at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
  60.              at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
  61.              at System.Linq.Expressions.Expression.NewArrayInit(Type type, IEnumerable`1 initializers)
  62.              at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.CreateArrayInitializer(CacheKey cacheKey)
  63.              at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.<Create>b__10_0(CacheKey k)
  64.              at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  65.              at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.Create(IReadOnlyList`1 types)
  66.              at Microsoft.EntityFrameworkCore.Query.Sql.DefaultQuerySqlGenerator.CreateValueBufferFactory(IRelationalValueBufferFactoryFactory relationalValueBufferFactoryFactory, DbDataReader dataReader)
  67.              at Microsoft.EntityFrameworkCore.Query.Internal.ShaperCommandContext.<NotifyReaderCreated>b__14_0(FactoryAndReader s)
  68.              at Microsoft.EntityFrameworkCore.Internal.NonCapturingLazyInitializer.EnsureInitialized[TParam,TValue](TValue& target, TParam param, Func`2 valueFactory)
  69.              at Microsoft.EntityFrameworkCore.Query.Internal.ShaperCommandContext.NotifyReaderCreated(DbDataReader dataReader)
  70.              at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.BufferlessMoveNext(DbContext _, Boolean buffer)
  71.              at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.MoveNext()
  72.              at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.GetResult[TResult](IEnumerable`1 valueBuffers, Boolean throwOnNullResult)
  73.              at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ResultEnumerable`1.GetEnumerator()
  74.              at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
  75.     System.InvalidOperationException: No coercion operator is defined between types 'System.Int16' and 'System.Boolean'.
  76.        at System.Linq.Expressions.Expression.GetUserDefinedCoercionOrThrow(ExpressionType coercionType, Expression expression, Type convertToType)
  77.        at System.Linq.Expressions.Expression.Convert(Expression expression, Type type, MethodInfo method)
  78.        at System.Linq.Expressions.Expression.Convert(Expression expression, Type type)
  79.        at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.CreateGetValueExpression(Expression dataReaderExpression, Expression indexExpression, TypeMaterializationInfo materializationInfo, Boolean box)
  80.        at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.<>c.<CreateArrayInitializer>b__12_0(TypeMaterializationInfo mi, Int32 i)
  81.        at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
  82.        at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
  83.        at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
  84.        at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
  85.        at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
  86.        at System.Linq.Expressions.Expression.NewArrayInit(Type type, IEnumerable`1 initializers)
  87.        at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.CreateArrayInitializer(CacheKey cacheKey)
  88.        at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.<Create>b__10_0(CacheKey k)
  89.        at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  90.        at Microsoft.EntityFrameworkCore.Storage.TypedRelationalValueBufferFactoryFactory.Create(IReadOnlyList`1 types)
  91.        at Microsoft.EntityFrameworkCore.Query.Sql.DefaultQuerySqlGenerator.CreateValueBufferFactory(IRelationalValueBufferFactoryFactory relationalValueBufferFactoryFactory, DbDataReader dataReader)
  92.        at Microsoft.EntityFrameworkCore.Query.Internal.ShaperCommandContext.<NotifyReaderCreated>b__14_0(FactoryAndReader s)
  93.        at Microsoft.EntityFrameworkCore.Internal.NonCapturingLazyInitializer.EnsureInitialized[TParam,TValue](TValue& target, TParam param, Func`2 valueFactory)
  94.        at Microsoft.EntityFrameworkCore.Query.Internal.ShaperCommandContext.NotifyReaderCreated(DbDataReader dataReader)
  95.        at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.BufferlessMoveNext(DbContext _, Boolean buffer)
  96.        at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.MoveNext()
  97.        at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.GetResult[TResult](IEnumerable`1 valueBuffers, Boolean throwOnNullResult)
  98.        at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ResultEnumerable`1.GetEnumerator()
  99.        at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
Advertisement
Add Comment
Please, Sign In to add comment