While updating migration in cmd(folder path) using mig update getting error

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.<ExecuteOperation>b__0()
at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.SqlUtils.WithSqlExceptionHandling[TResult](Func1 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.<Do>b__10_0() at Microsoft.Azure.SqlDatabase.ElasticScale.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 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, Func3 converter, Boolean throwOnFailure) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager.GetShardMap(String shardMapName) at Submission#0.Sharding.GetShardDatabases(DbConfig dbconfig) in C:UsersgsampathkumarsourcereposALscriptscoresharding.csx:line 27 at Submission#0.EF.Update(UpdateArgs args) in C:UsersgsampathkumarsourcereposALscriptscoremigrationsef.csx:line 68 at Submission#0.UpdateCommand.Handle(UpdateArgs args) in C:UsersgsampathkumarsourcereposALscriptscoremigrationscliupdateupdate-cmd.csx:line 25 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 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.<<BuildInvocationChain>b__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.<<UseParseErrorReporting>b__20_0>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.<<UseHelp>b__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.<<UseVersionOption>b__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.<<UseTypoCorrections>b__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.<<UseSuggestDirective>b__21_0>d.MoveNext() in //src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 398
— End of stack trace from previous location —
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__19_0>d.MoveNext() in /
/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 352
— End of stack trace from previous location —
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext() in //src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 225
— End of stack trace from previous location —
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>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.<<UseExceptionHandler>b__0>d.MoveNext() in /_/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs:line 254

How to solve this error

New contributor

alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật