I am in the process of conversion, but I did not get very far...
I'd be very obliged for any help!

Server Error in '/' Application.
Method 'Load' in type
'Castle.Facilities.NHibernateIntegration.SessionDelegate' from assembly
'Castle.Facilities.NHibernateIntegration, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' does not have an implementation.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Method 'Load' in type
'Castle.Facilities.NHibernateIntegration.SessionDelegate' from assembly
'Castle.Facilities.NHibernateIntegration, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' does not have an implementation.

Source Error:

Line 26:         protected ISession Session
Line 27:         {
Line 28:             get { return manager.OpenSession(sessionFactoryId); }
// both manager and id are not null
Line 29:         }
Line 30:


Source File:
C:\data\SomeNamespace\ProjectBase.Data\AbstractNHibernateDao.cs    Line: 28

Stack Trace:

[TypeLoadException: Method 'Load' in type
'Castle.Facilities.NHibernateIntegration.SessionDelegate' from assembly
'Castle.Facilities.NHibernateIntegration, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' does not have an implementation.]

Castle.Facilities.NHibernateIntegration.Internal.DefaultSessionManager.OpenSession(String
alias) in
c:\data\castle\src\Facilities\NHibernateIntegration\Castle.Facilities.NHibernateIntegration\Internal\DefaultSessionManager.cs:115
   ProjectBase.Data.AbstractNHibernateDaoBase.get_Session() in
C:\data\SomeNamespace\ProjectBase.Data\AbstractNHibernateDao.cs:28
   SomeNamespace.Data.ProductGroupDao.GetAllRecursively() in
C:\data\SomeNamespace\SomeNamespace.Data\ProductGroupDao.cs:67
   SomeNamespace.Web.Site.MVC.Controllers.HomeController.Default() in
C:\data\SomeNamespace\SomeNamespace.Web.Site.MVC\Controllers\HomeController.cs:34

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner) +71
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks) +350
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19

Castle.MonoRail.Framework.SmartDispatcherController.InvokeMethod(MethodInfo
method, IRequest request, IDictionary`2 extraArgs) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\SmartDispatcherController.cs:82

Castle.MonoRail.Framework.ActionMethodExecutorCompatible.Execute(IEngineContext
engineContext, IController controller, IControllerContext context) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\ActionMethodExecutor.cs:86
   Castle.MonoRail.Framework.Controller.RunActionAndRenderView() in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\Controller.cs:1681
   Castle.MonoRail.Framework.Controller.Process(IEngineContext
engineContext, IControllerContext context) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\Controller.cs:103
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\BaseHttpHandler.cs:94

[MonoRailException: Error processing MonoRail request. Action default on
controller home]
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\BaseHttpHandler.cs:111
   Castle.MonoRail.Framework.BaseHttpHandler.ProcessRequest(HttpContext
context) in
c:\data\castle\src\MonoRail\Castle.MonoRail.Framework\BaseHttpHandler.cs:66

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3053;
ASP.NET Version:2.0.50727.3053

My config looks like this:
<configuration>
    <include uri="file://OrderRules.config" />
    <facilities>
        <facility id="nhibernate.domain"
                            isWeb="true"

type="Castle.Facilities.NHibernateIntegration.NHibernateFacility,
Castle.Facilities.NHibernateIntegration">
            <factory id="nhibernate.factory.domain">
                <settings>
                    <item key="show_sql">true</item>
                    <item key="max_fetch_depth">1</item>
                    <item
key="dialect">NHibernate.Dialect.MsSql2005Dialect</item>
                    <item
key="connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
                    <item
key="connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
                    <item key="connection.connection_string">Data
Source=xxx;Initial Catalog=yyy;Integrated Security=True</item>
                    <item key="connection.isolation">ReadCommitted</item>
                    <item key="default_schema">xxx.dbo</item>
                    <item key="query.substitutions">true 1, false 0, yes
'Y', no 'N'</item>
                    <item key="adonet.batch_size">10</item>
                    <item
key="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</item>
                </settings>
                <assemblies>
                    <assembly>SomeNamespace.Businesslayer</assembly>
                </assemblies>
            </factory>
        </facility>
    </facilities>
...
</configuration>

-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to