简体   繁体   中英

XAMARIN ANDROID app got System.ServiceModel.FaultException

I have an app running well, but after I upgrade visual studio 2019 OSX, I got the exception when running the app.

Target _ResolveSatellitePaths: No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily. Target _CopyConfigFiles:

[mono] Unhandled Exception:

[mono] System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to load file or assembly 'DeepCloner, Version=0.10.0.0, Culture=neutral, PublicKeyToken=dc0b95cf99bf4e99' Or one of its dependencies。 The definition of the found component information list does not match the component reference。 (An exception occurred on HRESULT: 0x80131040)

[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to load file or assembly'DeepCloner, Version=0.10.0.0, Culture=neutral, PublicKeyToken=dc0b95cf99bf4e99' Or one of its dependencies。 The definition of the found component information list does not match the component reference。 (An exception occurred on HRESULT: 0x80131040)

I knew it's a dll conflict issue. but I can't find a way to fix it. thanks for any information.

Have a try with updating DeepCloner to the latest verson 0.10.2 to check whether solve this.

In this release we're removed System.Reflection namespace from cloning, because some classes in System.Reflection.Emit cause unexpected crashes in runtime. Also, there are no significant reasons to clone these classes.

Also, checking for empty constructors is improved to reduce number of exceptions (internally catched, but can slow down copying).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM