views:

61

answers:

2

I am trying to use microsoft enterprise library logging framework in a c++/cli dll.

I tested it in a c++ application, and it worked beatifully. it is compiling in the dll, but does not work when I try to run it, and the error is not getting caught in my catch clause.

I have all the correct import and using statements in place - as it compiles without a problem.

This line of code is not going through in the dll:

IConfigurationSource^ dataSource = gcnew FileConfigurationSource("C:\\Documents and Settings\\All Users\\WSUtils\\WSUtils\\app.config");

any ideas?

A: 

I think I discovered the problem. I am trying to call this dll from a COM application. The error is : 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.

Is there any way to get around this?

TIA

Is Microsoft.Practices.EnterpriseLibrary.Common.dll in the same directory as the logging dll you're referencing?
Judah Himango
A: 

Hi I have been trying to configure Enterprise Library 5.0 with C++/CLI on VS2008 but I am not getting anywhere. I need help. Can you tell me which version you used? Based on the date of your post I assuem it was some prior version of EL?

DPD