Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
\---\> System.TypeLoadException: Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
at System.Data.SqlTypes.SqlTypeWorkarounds.SqlGuidCtor(Byte\[\] value, Boolean ignored)
at System.Data.SqlClient.TdsParser.TryReadSqlValueInternal(SqlBuffer value, Byte tdsType, Int32 length, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly)
at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)
at System.Data.SqlClient.SqlDataReader.ReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)
at System.Data.SqlClient.SqlDataReader.GetGuid(Int32 i)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlShardMap..ctor(SqlDataReader reader, Int32 offset)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlResults.Fetch(SqlDataReader reader)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlStoreTransactionScope.\c__DisplayClass11_0.\b__0()
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlUtils.WithSqlExceptionHandling\[TResult\](Func`1 operation) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlStoreTransactionScope.ExecuteOperation(String operationName, XElement operationData) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.FindShardMapByNameGlobalOperation.DoGlobalExecute(IStoreTransactionScope ts) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreOperationGlobal.b__10_0() at Microsoft.Azure.SqlDatabase.ElasticScale.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreOperationGlobal.Do()
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupShardMapByNameInStore(String operationName, String shardMapName)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupShardMapByName(String operationName, String shardMapName, Boolean lookInCacheFirst)
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupAndConvertShardMapHelper\[TShardMap\](String operationName, String shardMapName, Func`3 converter, Boolean throwOnFailure) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.GetShardMap(String shardMapName) at Submission#0.Sharding.GetShardDatabases(DbConfig dbconfig) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\sharding.csx:line 27 at Submission#0.EF.Update(UpdateArgs args) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\migrations\ef.csx:line 68 at Submission#0.UpdateCommand.Handle(UpdateArgs args) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\migrations\cli\update\update-cmd.csx:line 25 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
\--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span\`1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object\[\] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object\[\] args)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context) in /_/src/System.CommandLine/Invocation/ModelBindingCommandHandler.cs:line 75
at System.CommandLine.Invocation.InvocationPipeline.\c__DisplayClass4_0.\d.MoveNext() in /_/src/System.CommandLine/Invocation/InvocationPipeline.cs:line 57
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 370
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass15_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 296
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass24_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 451
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass22_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 417
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 398
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 352
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 225
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 200
\--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass13_0.\d.MoveNext() in /\_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 254
[code]Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. \---\> System.TypeLoadException: Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field. at System.Data.SqlTypes.SqlTypeWorkarounds.SqlGuidCtor(Byte\[\] value, Boolean ignored) at System.Data.SqlClient.TdsParser.TryReadSqlValueInternal(SqlBuffer value, Byte tdsType, Int32 length, TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly) at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) at System.Data.SqlClient.SqlDataReader.ReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) at System.Data.SqlClient.SqlDataReader.GetGuid(Int32 i) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlShardMap..ctor(SqlDataReader reader, Int32 offset) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlResults.Fetch(SqlDataReader reader) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlStoreTransactionScope.\c__DisplayClass11_0.\b__0() at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlUtils.WithSqlExceptionHandling\[TResult\](Func`1 operation) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlStoreTransactionScope.ExecuteOperation(String operationName, XElement operationData) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.FindShardMapByNameGlobalOperation.DoGlobalExecute(IStoreTransactionScope ts) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreOperationGlobal.b__10_0() at Microsoft.Azure.SqlDatabase.ElasticScale.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreOperationGlobal.Do() at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupShardMapByNameInStore(String operationName, String shardMapName) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupShardMapByName(String operationName, String shardMapName, Boolean lookInCacheFirst) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.LookupAndConvertShardMapHelper\[TShardMap\](String operationName, String shardMapName, Func`3 converter, Boolean throwOnFailure) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.GetShardMap(String shardMapName) at Submission#0.Sharding.GetShardDatabases(DbConfig dbconfig) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\sharding.csx:line 27 at Submission#0.EF.Update(UpdateArgs args) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\migrations\ef.csx:line 68 at Submission#0.UpdateCommand.Handle(UpdateArgs args) in C:\Users\gsampathkumar\source\repos\AL\scripts\core\migrations\cli\update\update-cmd.csx:line 25 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) \--- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span\`1 copyOfArgs, BindingFlags invokeAttr) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object\[\] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object\[\] args) at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context) in /_/src/System.CommandLine/Invocation/ModelBindingCommandHandler.cs:line 75 at System.CommandLine.Invocation.InvocationPipeline.\c__DisplayClass4_0.\d.MoveNext() in /_/src/System.CommandLine/Invocation/InvocationPipeline.cs:line 57 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 370 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass15_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 296 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass24_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 451 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass22_0.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 417 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 398 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 352 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 225 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c.\d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 200 \--- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.\c__DisplayClass13_0.\d.MoveNext() in /\_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 254 [/code] Как устранить эту ошибку