I am using Enteprise Library 5 for exception handling and loggin.
The configuration is actually in a .dll which is used in different project.
In order to access the configuration file I use the following code:
exceptionFactory = new
Policy = exceptionFactory.Create(
This code works well in two different application that reference the .dll, both Windows forms application.
However, I have a third scenario where I need to reference that .dll within another .dll which is COM visible
When the above code is executed I get the following error:
The type 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling' cannot be resolved. Please verify the spelling is correct or that the full type name is provided
I have verified that the .dlls are copied to the bin directory, of both .dlls (the one which uses the Enteprise Library and the one that calls it).
I cannot find a reason for this happening.
Any idea of what I am doing wrong?