Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I created a c++ .net dll, in which I need to implement logging. I decided to go with Microsoft Enterprise Library's Logging.

Now, I am calling this dll from a COM application (I created a .tlb from the dll to use in the COM application), and the error I am getting is this:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

How can I get around this??

TIA

share|improve this question
    
Did you actually include the Microsoft.Practices.EnterpriseLibrary.Common assembly in your .NET project? –  Steven Feb 10 '10 at 16:05
    
yes, and the dll for that is there, in the debug folder of the dll. Do I need to create a tlb for this dll as well? If yes, how would i do that? –  user228058 Feb 10 '10 at 16:09

1 Answer 1

up vote 0 down vote accepted

Ok. I got it working. I needed to create a tlb file for each of the dll's using regasm/tlb

Thanks

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.