[Solved] ASP.Net Crystal Report Error: The located assemblys manifest definition does not match the assembly reference

samsmuthu
 
on Nov 23, 2021 10:08 PM
4295 Views

Hi

I am developing a project using Crystal Report sp31. in my localhost, every things working such as view, print, export. 

after publish to my remote server that page displayed; "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 was

  • install log4net to visual studio via ‘Manage NuGet packages’ and add to references. (log4net  by The Apache Software Foundation)
  • No modification on web.config
  • No insulation of crystal report tools to remote IIS server

Please help me to fix above issue

Thanking 

samsmuthu

Download FREE API for Word, Excel and PDF in ASP.Net: Download
arjunv
 
on Nov 24, 2021 01:53 AM

Hi samsmuthu,

You don't have log4net dll on your server.

When you deploy your project to the server, make sure that a log4net dll is there.

Else copy the dll and paste in bin folder on the server.

And

1. Open IIS.

2. Go to current server –> Application Pools.

3. Select the application pool your 32-bit application will run under.

4. Click Advanced setting or Application Pool Default.

4. Set Enable 32-bit Applications to True.