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.  [ 3 posts ] 
Author Message
 Post subject: Could not load type Npgsql.NpgsqlConnection after upgrade
PostPosted: Wed Sep 06, 2006 10:43 am 
Beginner
Beginner

Joined: Tue Jun 06, 2006 4:47 am
Posts: 25
Just upgraded to NHibernate-1.2.0.Alpha1-debug
and running the same small test project as on previous version of NHibernate, which worked fine, I'm now getting.

Code:
ERROR   1508   NHibernate.Util.ReflectHelper      Could not load type Npgsql.NpgsqlConnection, Npgsql.
System.IO.FileNotFoundException: Could not load file or assembly 'Npgsql' or one of its dependencies. The system cannot find the file specified.
File name: 'Npgsql'
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name) in


I've changed nothing in my code.
What have I done wrong ?

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 4:47 pm 
Newbie

Joined: Wed Sep 06, 2006 8:33 am
Posts: 19
Add the Npgsql.dll and Mono.Security.dll in same folder of your program.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 3:21 am 
Beginner
Beginner

Joined: Tue Jun 06, 2006 4:47 am
Posts: 25
Kernel Panic wrote:
Add the Npgsql.dll and Mono.Security.dll in same folder of your program.



That did the trick.... I always check the simplest stuff last.
Many thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.