cancel
Showing results for 
Search instead for 
Did you mean: 

LOG4NET

Former Member
0 Kudos

am having this problem after I deployed my application

Parser Error Message: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

please help me for my project its on 19/09/2012 15H00 GMT+2

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

I moved your post to the SAP Crystal Reports, version for Visual Studio forum space.

Find the search box in the top right corner of this web page. Enter the search term; log4net crystal net.

This will return a number of KBases and other resources that should help.

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Answers (1)

Answers (1)

Former Member

LET'S ASSUME YOU CANNOT TARGET for x64, because it will break the site.

LET'S ASSUME YOU HAVE CHECKED the log4net.dll and all version seem to be the same, yet not working.

LET'S ASSUME you have already tried removing the file, fiddling with the GAC, and this dog won't hunt, no matter what you do!

You can do what I did, spend two months following Ludek's advice and becoming more and more frustrated as you read thread after thread of good information, but no solution. Not because they are bad ideas, but because they do not take into consideration that pieces of your web app are 32 bit by definition and changing the target destroys the entire site! Some of them ask you to modify things that you do not have the user rights to.  Others recommend you doing things to your assemblies that can get your fired in larger shops because you crash everyone else!

Or, if you're pressed for time.

  1. Remove any log4net.dll references in your BIN directory
  2. Go get the CR Runtimes for SAP, both the 64 bit AND the 32 bit.
  3. Install them BOTH on the development box AND the productions box. EVEN IF YOU THINK YOU HAVE DONE SO ALREADY!
  4. MAKE SURE your application pool is set to allow 32 bit applications already. If it already says it does, you should be done.  If not, try it with the 64, and if if does not work, turn this on and Recycle (Stop and restart) the site.
  5. Rebuild your project
  6. Publish...and Voila!

Why?  because it wants to use the 32 bit app and the 32 bit app works.  That's what matters!

Ludek's advice was actually very good, and quite thorough if you read his links on the location for the redist modules, but some of us just need step-by-step like myself.  I don't need to understand why it is broken, I just need it to be fixed. Let me know if that works out for you!