CLR Hosting and private assembly issue

0

I'm loading an assembly AA through CLR Hosting. It works...

In this Assembly, I add a reference to another custom assembly XX (A minimal class "Hello world") and instantiate this XX within a method in AA.

But now running again AA with CLR Hosting raises the error :

0x80131604 : Uncaught exception thrown by method called through Reflection.

Note : If I register XX in GAC, everything works ! I tried too a dynamic loading like

Assembly am = Assembly.Load("XX");

it works too...

An idea ?

visual-studio
clr
gac
clr-hosting
asked on Stack Overflow Feb 15, 2021 by Stef • edited Feb 15, 2021 by Stef

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0