Crystal Reports error when deployed..Could not load file or assembly 'log4net

后端 未结 6 1533
自闭症患者
自闭症患者 2020-12-04 18:32

Please help. I have a web application that was built in VS2010 and we are using the CR plugin for 2010 and everything works perfect on our local machines. When we go to de

相关标签:
6条回答
  • 2020-12-04 18:41

    For me I had a VB Application project and under Compile options, I had "Any CPU" selected for Target CPU and I also had the "Prefer 32-bit" checked. When the compiled app ran on a 64 bit machine, which only had the x64 runtime installed it could crash with this error, because it tried running as a 32 bit app and wanted the 32 bit runtime. Unchecking this option and recompiling made it work correctly.

    0 讨论(0)
  • 2020-12-04 18:50

    We also had the same issue with the 64-bit redistributable installed. In our case, we set the "Enable 32 Bit Applications" setting to FALSE in the advanced Application Pool properties and that resolved the issue.

    0 讨论(0)
  • 2020-12-04 18:52

    Solved my problems.

    I have 2 NLB 2008 R2 Servers, my IISs are configured to run in x32.

    In one server I have installed x64 and x32 SAP redist and I have the error, in second server only the x32 and works.

    To get the first server work I uninstalled all versions and reinstalled only x32, but the server start work only after a reboot.

    Bye

    0 讨论(0)
  • 2020-12-04 18:59

    We just ran into the same problem and it turned out to not (in our case) be the version of the Crystal Reports redist (we installed the 32 bit versions on our 64 bit machines. The way we were able to fix the problem was to

    Navigate to your virtual directory Application Pool -> Advanced Settings -> Set Enable 32-Bit Applications to True

    and changed the managed pipeline mode from Classic to Integrated. After that we no longer got errors of the missing log4net dll.

    0 讨论(0)
  • 2020-12-04 19:02

    If you have a x86 development machine and your web server is a 64-bit machine, you may be running into the problem discussed here:

    http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/546059a6-7179-4027-8f16-822ac6dc189a/

    Visual Studio is automatically deploying a 32-bit log4net.dll into the 64-bit web server, even if you don't have it referenced in your project. Just delete the log4net.dll from your bin directory once deployment has finished because it's not actually required by the CR runtime to work.

    0 讨论(0)
  • 2020-12-04 19:04

    I received the same error message after accidently installing the x86 version of the crystal reports redist on a x64 machine.

    Installing the correct x64 redist fixed the problem - http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip

    0 讨论(0)
提交回复
热议问题