2009-12-03 10 views
1

localement mon site fonctionne, mais hôte je reçois l'erreur:opération NHibernate pourrait déstabiliser l'exécution

« l'opération pourrait déstabiliser l'exécution. »

J'utilise nhibernate. J'utilise le modèle de référentiel.

[VerificationException: Operation could destabilize the runtime.] 
    CategoryProxy..ctor() +6 

[TargetInvocationException: Exception has been thrown by the target of an invocation.] 
    System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0 
    System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86 
    System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 
    System.Activator.CreateInstance(Type type, Boolean nonPublic) +67 
    LinFu.DynamicProxy.ProxyFactory.CreateProxy(Type instanceType, IInterceptor interceptor, Type[] baseInterfaces) +20 
    NHibernate.ByteCode.LinFu.ProxyFactory.GetProxy(Object id, ISessionImplementor session) +208 

[HibernateException: Creating a proxy instance failed] 
    NHibernate.ByteCode.LinFu.ProxyFactory.GetProxy(Object id, ISessionImplementor session) +306 
+0

Utilisez-vous améliorer? –

Répondre

1

utilisation Castle Dynamic Proxy

+0

si cela fonctionne, vous ne croirez pas à quel point l'imma va être heureux! – mrblah

+0

Je cours 2.1.2GA, et ouvrant le sol'n montre qu'ils utilisent la version 2.1.0.0 de dymaicproxy2, ne peut pas trouver cette branche ici: https://svn.castleproject.org/svn/castle/ DynamicProxy – mrblah

+0

vous pouvez obtenir la branche pour Castle DP 2.1 ici: https://svn.castleproject.org/svn/castle/tags/dynamicproxy-2.1.0/ Mais pourquoi avez-vous besoin du code? Obtenez le binaire. Je suggère également d'obtenir la version bêta 2.2 (publiée aujourd'hui!), Mais pour le moment, vous devrez construire vous-même le projet NHibernate ProxyFactoryFactory avec cette nouvelle version. –