CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeffrey Palermo (.com)

Blog moved to www.jeffreypalermo.com

When the only thing that will work is gacutil - level 200

I try to avoid the GAC at all costs.  I prefer xcopy deployments of applications.  However, if you use some projects that all reference log4net, then you know the pain of trying to resolve log4net versions.  More often than not, it's not feasible to recompile every project you depend on.  If you need to reference two libraries that each then reference different versions of log4net, you have a tough problem because only one file named "log4net.dll" can be copied to the /bin directory.

log4net is a strong-named assembly, so version information is a part of finding the assembly.  In this case, I had to resort to putting two versions in the GAC.  As much as I hated doing so, it seemed like the only way out.

gacutil /i log4net.dll (x2)



Comments

Tomas Restrepo said:

Were the two log4net versions so different that you couldn't do a binding redirect and have a single version of it?
# May 28, 2006 10:19 PM

Jason Haley said:

# May 29, 2006 10:24 AM

Jeffrey Palermo said:

Tomas,
To be honest, I didn't try a binding redirect.  I will give that a shot.
# May 29, 2006 10:01 PM

Harris said:

Jeffrey,

I experienced a similar problem with a third-party web control.  All things aside, we resorted to adding a binding redirect so that the application would load the new version of the component without having to recompile the application.  Worked like a champ.

H
# June 6, 2006 8:22 AM

Jeffrey Palermo said:

Harris,
That's great to hear.
# June 6, 2006 8:35 AM

About Jeffrey Palermo

Jeffrey Palermo is a software management consultant and the CTO of Headspring Systems in Austin, TX. Jeffrey specializes in Agile coaching and helps companies double the productivity of software teams. Jeffrey is an MCSD.Net , Microsoft MVP, Certified Scrummaster, Austin .Net User Group leader, AgileAustin board member, INETA speaker, INETA Membership Mentor, Christian, husband, father, motorcyclist, Eagle Scout, U.S. Army Veteran, and Texas A&M University graduate. Check out Devlicio.us!

This Blog

Syndication

News

Headspring Systems

View Jeffrey Palermo's profile on LinkedIn

See my new blog at .jeffreypalermo.com