Skip to Content
Former Member
Jul 27, 2012 at 01:42 PM

log4net preventing setup project from completing.



When I attempt to build a setup project for my solution, I am getting the following ERROR.

  • File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86' S:\Projects\Development\\TestCRIssue\TestCRIssueSetup\TestCRIssueSetup.vdproj TestCRIssueSetup

This error is preventing the creation of the setup.exe files.

I am currently running the following setup

  • Windows 7 64 bit (fully updated)
  • Visual Studio 2010 (fully updated)
  • Crystal Reports for Visual Studio 13_0_4
  • Crystal Reports for Visual Studio redist 13_0_4 (32 bit)
  • Crystal Reports for Visual Studio redist 13_0_4 (64bit)

  • The target platform for the PROJECT solution is X86
  • The target platform for the INSALLER is X86

If I check the "exclude" option in the setup project dependencies, the error also goes away. However, does excluding this file from the setup cause problems with the installer on the clients pc?

I can also change the target architecture to X64 in the INSTALLER project. This works but creates an installer that will only work on x64 machines (so not very useful).

I can also uncheck the SAP Crystal Reports Runtime Engine for .NET Framework 4.0 listing in the prerequisites menu of the INSTALLER project, but I am note sure what this will accomplish.

We are experiencing the same problem on an other colleagues PC with a different project too.

I have setup a new project to test this issue (to remove all possibilities of interfearance from some DEV express add-on's). If I simply creat a nre project with a crystal report and then create a setup project, the error occurs.

Somone please help.


log4netError.jpg (336.6 kB)