YAFLogo

squirrel
  • squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
9 years ago
Getting the following error in yaf_EventLog table when attempting to migrate from 1.9.1.7 to 1.9.6.2 - proper web.config in place (with older membership settings) -

Forum runs and attempts upgrade, and upgrade shows success, but users cannot login and found the error in the event log relating to the migration. Hoping someone can shed some light on where to look.

Error In MigrateUsers Task: 
System.AggregateException: One or more errors occurred. 

---> System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)     
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)     
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)     
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()     
     at System.Threading.Tasks.Task.InnerInvoke()     
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)     
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )     
     --- End of inner exception stack trace ---     
     at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)     
     at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)     
     at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)     
     at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)     
     at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)     
     at YAF.Core.RoleMembershipHelper.MigrateUsersFromDataTable(Boolean approved, DataTable dataTable)     
     at YAF.Core.RoleMembershipHelper.SyncUsers(Int32 pageBoardID)     
     at YAF.Core.Tasks.MigrateUsersTask.RunOnce()  
     
---> (Inner Exception #0) System.InvalidCastException: Specified cast is not valid.     
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #1) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---    

---> (Inner Exception #2) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---    

---> (Inner Exception #3) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #4) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #5) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #6) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #7) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #8) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---

---> (Inner Exception #9) System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at YAF.Core.RoleMembershipHelper.<>c__DisplayClass27.<MigrateUsersFromDataTable>b__26(DataRow row)
     at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
     at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )<---  
     

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Sponsor