mercredi 6 mai 2015

ATL project can't find referenced dll from the same solution

I have two projects in my solution. First one is an ATL project (created using this guide: http://ift.tt/1brstZ6 ). Second one is a CLR Class Library project (as per this: http://ift.tt/1GOkhe5 ).

Now the problem is that when I use this COM object in an other program, it crashes. When I attach a debugger to the process, it throws a System.IO.FileNotFoundException: Could not load file or assembly 'CLRClassLibrary, Version=1.0.5604.15598, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

When I build a Release, the program doesn't crash, but simply tells me that method was not found.

I checked both Debug and Release folders and they contain CLRClassLibrary.dll. TargetedNetFramework version 4.5

Aucun commentaire:

Enregistrer un commentaire