Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been strugling for 2 days, I did this in VS but it won't work in dreamweaver cs5. I put the dll in the bin folder and put in the web.confg and nothing works.

I get this error:

System.IO.FileLoadException: 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)


I need help setting this up. I am doing this because I want to use crystalreports and I put those dll files in the bin folder and I get no error only for log4net.
Posted
Updated 8-Dec-10 8:44am
v2

Have you made sure the versions of the assembly is correct. It appears to be looking for 1.2.10.0, is that the version in your bin folder?
 
Share this answer
 
Comments
ajep 8-Dec-10 15:43pm    
yes, i checked the dll file
i found the problem.
crystal is also using and installing the log4net assembly with that exact version number. the problem: crystal decided to change the strongname (public key token ) to 692fbea5521e1304 (like the strng name of their own dlls)

so your application isreferencing a DLL that has 2 occurrenced: in the BIN folder and in the GAC. the version is the same but the Public key token is different.

so in the solution you reference the public key token of the file in the BIN foldr, but when compiling, visual studio copies the file that is in the GAC !
and when running , no wonder that the application is expecting one strong name, and getting something else.
it's all crystal's fault.
i suggest using the log4net that crystal installed, instead of the one downloaded from apache
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900