1
votes

I have some legacy application in vb6 and I am interoping into .net

It all works fine in net alone but in vb6 it does not create the log. I cannot see what I am doing wrong.

I have using log4net using config file and I have added the log4net configsection into C:\Program Files\Microsoft Visual Studio\vb6.exe.config

has anybody got it working in vb6? What are the steps?

1

1 Answers

1
votes

vb6.exe.config could not possibly work since this is the VB 6 IDE, not your legacy application.

You would have to initialize and use log4net from the .net libraries you are interop'ing with. You can do this using XmlConfigurator and a separate config file.