-->
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.  [ 1 post ] 
Author Message
 Post subject: newbie question
PostPosted: Sun Dec 26, 2010 10:00 am 
Newbie

Joined: Sun Dec 26, 2010 9:45 am
Posts: 1
Hi,

When running a program the first time with Nhibernate, i get the following error message.
Unhandled Exception: NHibernate.MappingException: Could not compile the mapping
document: Nhibernate1.Employee.hbm.xml ---> System.InvalidOperationException: Un
able to generate a temporary class (result=1).
error CS0016: Could not write to output file 'c:\Documents and Settings\Pierre F
ranckx\Local Settings\Temp\8psgbbwa.dll' -- 'Access is denied. '

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlS
erializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMap
pings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCo
mpilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type
[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xml
Mapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultName
space)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at NHibernate.Cfg.XmlHbmBinding.Binder.Deserialize[T](XmlNode node)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
at NHibernate.Cfg.Configuration.ProcessMappingsQueue()
at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument docu
ment)
at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name
)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String
name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)

When running it a second time, it works... don't have a clue... checked all the settings but don't find anything.

Thankx in advance.

Pierre


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

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.