Reputation: 422
I am trying to deploy an update and all of a sudden I am getting the message about log4net.dll version 1.2.10.0 needing to be installed in the GAC. This is version number 38 and I have property set to Copy Local = true, and set the value to Include on the Application Files setting. I even gave up and registered the log4net.dll into the GAC on the target machine. Funny thing is this update rolls out just fine on two other computers.
I am not sure what might have changed since the last update?
cheers
bob
edit: I found this entry in the manifest file for log4net. It is not in any of the other manifest files for other applications where I use log4net? Yet if I try to modify the file, clickonce knows and says the install is corrupted.
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="log4net" version="1.2.10.0" publicKeyToken="692FBEA5521E1304" language="neutral" processorArchitecture="x86" />
</dependentAssembly>
Upvotes: 3
Views: 2509
Reputation: 3885
My best guess would be that you have two dependencies to log4net.dll. On comes directly from your project, which has it referenced, and one is an implicit reference from another library (typically a library compiled for .net 1.1, in my case it happened with Crystal Reports). My guess is that this two references point to different versions.
Upvotes: 2