cancel
Showing results for 
Search instead for 
Did you mean: 

CR 2010 - Could not load file or assembly 'log4net'...

Former Member
0 Kudos

I have installed the CR 2010 release and am attempting to create a deployment package for a web site using the full version. Upon building the deployment package, I receive the following error:

ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.

This error has been mentioned in several threads, but without any successful solutions.

Has anybody found a resolution?

Thank you.

MB

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

My impression is that this occurs if there was a Beta of CRVS2010 installed on the machine (runtime, or actual crvs). If that is the case here, see my last post on [this|] thread and see if the suggestions there help.

If this is a clean machine, use [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] to find out what is happening when the process attempts to load log2net.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

Thank you for the assistance, Ludek - I'm still having some difficulties.

I did in fact have the beta installed, but have followed your suggestions on the last message of with no luck.

What is interesting is that projects run correctly on my local debug machine, but when trying to bundle the web applications into a web deployment, I receive the error.

Any additional suggestions?

Thank you.

former_member183750
Active Contributor
0 Kudos

Try [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx], see if the logs tell you anything.

Ludek

Former Member
0 Kudos

Thank you again, Ludek.

I have been digging through ProcessMonitor and found a few things. I'm not an expert on how or what the build process entails for Web Deployment Projects so i'm at a loss.

What I do know if that when I build my project, the wrong log4net.dll gets copied to the project's /bin directory.

Two versions of log4net.dll (version 1.2.10.0, Public Key Token = 692fbea5521e1304) are registered in the GAC. The first in GAC_32 (x86 processor architecture version) and the second in GAC_64 (AMD64 processor architecture version).

When the Web Deployment Project builds, it takes the AMD64 version of this dll and sticks it in my project.

To fix this problem, I copied the x86 version of the log4net.dll to the C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet folder and told Visual Studio to include that path when compiling.

I'm not sure if this is a Visual Studio issue or an SAP issue, but I feel a fresh install of my Windows 7 virtual machine happening soon.

Thanks again for your help.

0 Kudos

Hello,

David has found one possible solution. See this [thread |http://forums.sdn.sap.com/click.jspa?searchID=67325183&messageID=9848374]for how to:

http://forums.sdn.sap.com/click.jspa?searchID=67325183&messageID=9848374

Thank you

Don

Former Member
0 Kudos

Hello,

>

> David has found one possible solution. See this [thread|http://www.starbike.com] for how to:

>

> http://forums.sdn.sap.com/click.jspa?searchID=67325183&messageID=9848374

>

> Thank you

> Don

Thnak you, this solved my problem!

Greetings

Former Member
0 Kudos

I tried.  the links in the message go to a landing page, but not information.  Still no love.

Answers (0)