These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: TypeLoadException - Access Denied
PostPosted: Mon Jul 31, 2006 9:50 am 
Newbie

Joined: Thu Mar 03, 2005 11:41 am
Posts: 6
Hello

Running NHibernate 1.02 alpha 1 with Visual Studio 2005. I have administrator rights on my machine.

I get a TypeLoadException Access is Denied on trying to create the proxy for a class. Here is the stacktrace. Can anyone help?

C:\Documents and Settings\SmithMS\My Documents\Visual Studio 2005\Projects\Neuro
nNET\NeuronNET\bin\Debug>NeuronNET
Starting...
Got cfg...
Got factory...
Got session...

Unhandled Exception: NHibernate.HibernateException: Creating a proxy instance fa
iled ---> System.TypeLoadException: Access is denied: 'NeuronNET.User'.
at System.Reflection.Emit.TypeBuilder.TermCreateClass(Int32 handle, Module mo
dule)
at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock()
at System.Reflection.Emit.TypeBuilder.CreateType()
at Castle.DynamicProxy.Builder.CodeBuilder.AbstractEasyType.BuildType()
at Castle.DynamicProxy.Builder.CodeGenerators.BaseCodeGenerator.CreateType()
at Castle.DynamicProxy.Builder.CodeGenerators.ClassProxyGenerator.GenerateCod
e(Type baseClass, Type[] interfaces)
at Castle.DynamicProxy.Builder.DefaultProxyBuilder.CreateClassProxy(Type theC
lass, Type[] interfaces)
at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type baseClass, Type[]
interfaces, IInterceptor interceptor, Boolean checkAbstract, Object[] arguments
ForConstructor)
at NHibernate.Proxy.CastleProxyFactory.GetProxy(Object id, ISessionImplemento
r session) in c:\net\nhibernate\nhibernate\src\NHibernate\Proxy\CastleProxyFacto
ry.cs:line 58


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 11:05 am 
Newbie

Joined: Thu Mar 03, 2005 11:41 am
Posts: 6
Please disregard - I had a bad connection string.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.