Is it possible to put a mixed assembly in GAC?

I have a CLR class library project which links to a .lib file to use the classes and methods of an old library (MFC 6.0 DLL). When I put the .NET assembly in the GAC and run my application I got a System.IO.FileNotFoundException. It seems that when the .net assembly is loaded from GAC it can not load the old DLL anymore. What should I do (I need the .net assembly as a global assembly.)



Answer this question

Is it possible to put a mixed assembly in GAC?

  • Måns Tånneryd

    Shadi_05 wrote:

    I have a CLR class library project which links to a .lib file to use the classes and methods of an old library (MFC 6.0 DLL). When I put the .NET assembly in the GAC and run my application I got a System.IO.FileNotFoundException. It seems that when the .net assembly is loaded from GAC it can not load the old DLL anymore. What should I do (I need the .net assembly as a global assembly.)

    Perhaps, putting the native DLL that's used by the mixed-mode DLL in the Windows System32 directory may solve this issue.



  • Vanio Benetollo

    Thanks, it solved the problem.
  • Is it possible to put a mixed assembly in GAC?