cancel
Showing results for 
Search instead for 
Did you mean: 

No way to resolve conflict between "log4net

Former Member
0 Kudos

I recently installed Crystal Reports 11 for Microsoft Developer Studio 2010 using the CRRunTime_32bit_13_0_5.msi on a Windows 7 64 bit system.  I then created a C# (.NET 4.0) assembly with the report viewer then referenced this assembly from another C# (.net 4.0) assembly. 

When I build the assembly that references the CR assembly I get the following message: No way to resolve conflict between "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" and "log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304". Choosing "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" arbitrarily.

I found this blog post:
http://scn.sap.com/thread/3167651

but the fix there did not fix my problem.

Note all my assemblies are build for .NET 4, but the references to the CrystalDecisions assemblies are showing as .NET 2.0 even though the path to the assemblies shows as a 4.0 path (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet)

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Michael

See if the following helps.

Navigate to:

1) C:\Windows\Microsoft.NET\Framework\v4.0.30319\RedistList

2) Edit the VSList.xml file

3) Add the following to the file list:

<File AssemblyName="log4net", Version="1.2.11.0", PublicKeyToken="669e0ddf0bb1aa2a", Culture="neutral", ProcessorArchitecture="x86" InGAC="true" />

4) Set Specific Version = True for this assembly in your dll.

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Ludek,

Thanks for your reply, but I did this prior to creating this blog entry and it did not work (unless it also requires a system restart which I have not done).

As to setting the Specific Version flag, I do not use or reference the log4net directly in any of my assemblies.  It is however referenced by: mscorlib, System.Data, System.Xml, System.Web, & System.Configuration and in each case it is the .NET 2.0 version of the log4net.dll (I used the AsmSpy utility to get these references).

Do you have any other suggestions or possible things I can try?

Thanks

Mike

Answers (0)