sibinkumar
Level 2

FlxLicensingClient.core Exception

Hi,

We are using licensed version of flexera libraries in our product. When I execute below code in my .net core application, I am getting System.Reflection.ReflectionTypeLoadException from FlxLicensingClient.core.dll. It will be great if someone can help me on this. Thanks in advance.

var serviceType = typeof(IService);
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
foreach (var type in assembly.GetTypes().Where(serviceType.IsAssignableFrom))
{
//Some logic
}
}

Exception details

System.Reflection.ReflectionTypeLoadException
HResult=0x80131602
Message=Unable to load one or more of the requested types.
Method 'get_CanRead' in type 'A.b' from assembly 'FlxLicensingClient.core, Version=2021.9.0.2298, Culture=neutral, PublicKeyToken=bd2a668b6e12bf71' does not have an implementation.
Source=System.Private.CoreLib
StackTrace:
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()

 

Kind regards,

Sibin

0 Kudos
0 Replies