Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 1/9/2007 1:41 PM
Hi,

We are getting two recurring NHibernate.Caches.SysCache exceptions on our live site and all messages in the NHibernate forum point to upgrading to 1.0.3.0.

I have downloaded the binaries from subversion and changed the following files:

• I have updated the web.config’s key runtime key
• I updated the Config/facilities.config file to that of Subversion
• I updated the CuyahogaContainer file from Subversion that has commented out the AddFacility lines.

I still get the following error

Could not load type 'Cuyahoga.Core.Domain.User, Cuyahoga.Core', check that type and assembly names are correct

It is choking at the following line in CuyahgoaContainer:

public CuyahogaContainer() : base(new XmlInterpreter())

Can anyone help me out, this is very urgent?

Thanks

Paul

# martijnb 1/9/2007 2:47 PM
To upgrade your version to NHibernate 1.0.3 you only have to copy the NHibernate binaries and maybe add or change a bindingredirect in the web.config (like the current trunk has for NHibernate because Castle references NH 1.0.2 but Cuyahoga uses 1.0.3)

You shouldn't need to touch the Castle config to upgrade the NHibernate version.

Btw, the updated facility only works with the latest release of Castle (RC2).

Hope this helps.
# dagda1 1/10/2007 10:58 AM
Hi,

I take it the current svn version runs fine against NHibernate 1.0.0.3.

I could not upgrade due to the following error message:

Could not load file or assembly 'Castle.Services.Transaction, Version=1.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

As far as I know Castle.Services.Transaction does not have a version 1.0.0.0. Have you seen this one.

It is very peculiar.

Paul
# martijnb 1/10/2007 5:40 PM
I think the best way solve it is to take your version that is running fine apart from the SysCache issue and only upgrade the NHibernate dlls (NHibernate.dll, Iesi.Collections.dll, NHibernate.Caches.SysCache.dll, Nullables.dll and Nullables.NHibernate.dll).

NHibernate 1.0.3 is a drop-in replacement for NHibernate 1.0.2 (experienced this myself), so this should really be the way to go if you want to solve the SysCache issue. You don't need to mess with the current SVN version or updated Castle stuff.

Please give this a try and let us know how it works out.
# dagda1 1/11/2007 2:51 AM
Hi Martin,

Thanks for that, I was heading down a very dark hole there. I really was not comfortable placing the Castle RC2 build onto the live server.

Your advise was spot on.

I had to change assemblyBinding in the web.config but apart from that all seems good........

For now.........:-)

Paul