简体   繁体   中英

Loading dll that contains Newtonsoft assembly with reflection error

I'm trying to load an assembly using reflection that uses the ISerializationBinder binder from Newtonsoft, but when the assembly is loaded it throws the following exception:

System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types. Could not load type 'Newtonsoft.Json.SerializationBinder' from assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.'

I don't really have a clue of why it could be

Well, honestly I'm still confused but I did a clean and then build of the assembly I was trying to load and that seemed to get rid of the old SerializationBinder class.

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