Use EnterpriseLibrary.Logging from non-.NET code through interop

G

Guest

Hi All,

We are using Microsoft.Practices.EnterpriseLibrary.Logging version 1.1.0.0
successfully with .NET code. There is a problem when we try to log from
non-.NET code through interop. We get the following error message:

/// Error Type:
/// Microsoft.Practices.EnterpriseLibrary.Configuration (0x80131902)
/// Invalid section name. The section 'loggingConfiguration' does not exist
in the requested configuration file 'C:\WINNT\system32\dllhost.exe.config' or
the file 'C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config'.
Make sure that the 'enterpriseLibrary.configurationSections' configuration
section exists in one of the files and that the section
'loggingConfiguration' is defined.

So the Enterprise Library can't find the logging information. Does anyone
know where it should go?

Thanks in advance,
Mark
 
G

Guest

I guess I asked for that.

So I'm now trying to get the correct entries into the machine.config file.
It seems that what is expected is not what is currently in the
loggingconfiguration.config file. Anyone know what the machine.config
entries should be formatted like?

Thanks in advance,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top