At runtime when my application calls a form that uses the 3rd party component this error shows
Error Stack: at c.a(LicenseContext A_0, Type A_1)
at c.b(LicenseContext A_0, Type A_1)
at q.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at c.a(Type A_0, Object A_1)
...
...
The component's assembly is .NET 2.0/3.5, and deployed in GAC C:\Windows\assembly
My application is plugin to executable program, i.e. it is a class library .NET 4.5.1. My assembly that calls the third party component assembly is deployed to GAC C:\Windows\Microsoft.NET\assembly\GAC_32
The host executable program is .NET 3.5 32bit
The licenses.licx is an embedded resource of the assembly calling the third party component assembly. I can see it in the compiled assembly using JustDeompile.
My first guess here is there is a security issue with the interaction of the two assemblies that use different .net versions. Can anyone offer some insight and advice on how to fix this?