I found a problem. Seems like the DotNetAdapter DLL loads log4net.DLL too and I didn't put the log4net.DLL in the working folder.