log4net-error when adding modules into mojoportal

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/18/2009 10:29:08 AM
Gravatar
Total Posts 20

log4net-error when adding modules into mojoportal

Hi,

I have Mojoportal 2.2.8.3 with Postgres and Windows XP SP3 running.

Everything works fine, so I wanted to add some self-created modules (ascx) which access a Postgres-Database with nhibernate.

But now everytime I want to start the site, which contains these modules, I get this error:

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

 

I discovered that the log4net.dll in the BIN of mojoportal states that it is for the .net framework 1.0, the one I used in my Project is for .net framework 2.0.

If I replace the mojoportal-log4net.dll with the one from my project, mojoportal does not start anymore at all.

If I replace the project-log4net.dll with the one from mojoportal, my project does not start anymore.

 

So what can I do?

thanks

Andi

6/18/2009 3:01:55 PM
Gravatar
Total Posts 18439

Re: log4net-error when adding modules into mojoportal

You could upgrade to the latest version of mojoPortal which uses a newer log4net, or you could change your custom code to use the same one that your version of mojoPortal uses or you could download the 2.2.8.3 source code and recompile it to use a newer log4net.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.