log4net & SmartAssembly

.NET obfuscator and automated error reporting

log4net & SmartAssembly

Postby jerra » Sat Oct 23, 2010 7:48 am

we have just started using SmartAssembly (5). Many questions have arisen.

One problem we haven't been able to solve concerns log4net. I don't know if this is the right forum, if not please point me in the right direction.

We have a console application (server software) using log4net and we have tried to have the log4net.dll merged or embedded together with the main assembly but it doesn't work. Having the log4net.dll completely outside makes the setup quite vulnerable as there are open configurations such as SQL statements for logging etc.
Ideal would be to have the log4net.dll & configurations files embedded and configurations encrypted. Is this possible?

log4net.config <- our configuration Logging level, logging type etc
log4net.xml <- log4net's own XML configurations

Posts: 1
Joined: Sat Oct 23, 2010 7:39 am

Postby nick.maidment » Mon Oct 25, 2010 10:35 am

I've just sent you an email, Please let me know if you get it. What kind of errors are you seeing when you're trying to embed or merge? does it build at all or does it fail during the build process?
Posts: 74
Joined: Fri Jan 29, 2010 12:55 pm

Postby Chris.Allen » Fri Oct 29, 2010 9:55 am

Hi, I hope you don't mind but I'm posting the solution that you found (good job, by the way :)

move the whole configuration for log4net into the program code
Posts: 579
Joined: Thu Mar 12, 2009 3:17 pm

Postby Uniwares_AS » Wed Nov 17, 2010 3:10 pm

On a side note, unrelated to the problem - while it is tempting to embedd or merge log4net into your assembly, by its license you are not allowed to do so. This is a general problem of using OSS assemblies in your protected products. We are required to deliver those assemblies, modified or original, as standalone assemblies by most of the licenses for OSS.
Posts: 132
Joined: Thu Oct 11, 2007 2:29 pm

Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests