balajeed on Fri, 04 Apr 2014 06:43:15
I have written an web application in VS2012 ASP.net C# ,win 7, to display Crystal reports. I moved this application to Azure Emulator. It was working fine locally. However after packaging it with Azure, crystal report is giving log4net dll loading error.
i didn't use log4net dll entire application but it gives error.
please help any one...
Will Shao on Fri, 04 Apr 2014 08:43:50
Please make sure the file "log4net dll" property "Copy Local" to true. And did you try to directly publish in VS?
balajeed on Fri, 04 Apr 2014 10:39:31
i have given the reference, still giving below error
Could not load file or assembly 'log4net, Version=184.108.40.206, 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)
Will Shao on Tue, 08 Apr 2014 04:32:13
Which version of your installed Crystal Reports ?
According to Rion's relpy, you need to ensure that you have included all of the appropriate DLL files associated to your library and make sure you have the correct version downloaded of all the associated assemblies (such as Crystal Reports) and that all of these are properly referenced in your application.
It may also help to check if the version installed is 32-bit or 64-bit and ensure that you have the correct one installed.
You may want to check out the following discussions on the topic :
- BugzNet Issue Tracker "Could not load file or assembly 'log4net'
- Crystal Reports log4net Issues
- Stack Overflow Discussion on this Topic
Also, you could refer to those same threads:
Please try it.