Does it actually work to use multiple versions of log4net via binding redirects? -


i tried solution (https://stackoverflow.com/a/3163050/766964) use 2 versions of log4net (1.2.10.0 , 1.2.13.0), , did me past file not found exception, nothing logged.

update: got log specifying full type information:

<!--<section name="log4net" type="log4net.config.log4netconfigurationsectionhandler, log4net"/>--> <section name="log4net" type="log4net.config.log4netconfigurationsectionhandler,log4net, version=1.2.10.0, culture=neutral, publickeytoken=1b44e1d426115821" /> 

but work? because shouldn't use 1.2.13.0 section handler one? there way specify both handlers , 2 separate sections same name?

i think can have load configuration @ least 1 of versions in code. post should log4net - can have custom section name in config. reason binding works because specifying library use (version, public key etc). binding redirects kick in when reference in question ambiguous (ie 2 versions of same assembly found). here specifying library use. in answer original question, possible specify 2 sections same name? no. possible change name of 1 of sections? apparently not, according link above.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -