-->
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.  [ 6 posts ] 
Author Message
 Post subject: Debugging NHibernate
PostPosted: Tue May 24, 2005 3:15 pm 
Beginner
Beginner

Joined: Tue May 17, 2005 2:48 pm
Posts: 47
I want to debug NHibernate, so I added NHibernate to my project to my solution in Visual Studio.
But when I build my solution, I get the error: 'Cryptographic failure while signing assembly 'E:NHibernate\NHibernate\src\NHibernate\obj\Debug\NHibernate.dll' -- 'Error reading key file '..\NHibernate.snk' -- The system cannot find the file specified. '

How do I debug NHibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 3:28 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Comment out the line with the snk in AssemblyInfo.cs, the key is not included in the package.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 3:56 pm 
Beginner
Beginner

Joined: Tue May 17, 2005 2:48 pm
Posts: 47
Thanks Sergey, it works fine now.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 8:38 am 
Newbie

Joined: Mon May 23, 2005 4:10 am
Posts: 9
alternatively, you could use the .NET strong naming tool and generate your own keypair:
sn -k NHibernate.snk

(the location of sn.exe (VS.NET binary folder) needs to be in the path.

then copy it to the correct place (one level above the NHibernate project) or change the AssemblyInfo.cs file.

cheers


Top
 Profile  
 
 Post subject: AssemblyKeyFileAttribute - *.snk
PostPosted: Wed Aug 10, 2005 7:00 am 
Newbie

Joined: Sun Jul 03, 2005 3:54 am
Posts: 9
It probably is not a question for Hibernate, but I will ask it anyway, because I do not understand!
Surda-Borivoje Surdilovic once said "Ko pita ne skita".

In a class AssemblyInfo
there is a line:
[assembly: AssemblyKeyFileAttribute("..\\NHibernate.snk")]

Now: of course I do not have a file like this on a disk so the code will not compile. So I delete this line and everything is OK.
Now, I am thinking, may be I should not delete it, but then WHY? And what must I do?

I read help and it says:
AssemblyKeyFileAttribute
Specifies the name of a file containing the key pair used to generate a strong name.

I DO NOT UNDERSTAND that...What is the benefit, purpose, what is the story behind it?

Thank you very much for the kind answer:)

Lp
S


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 10:00 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Read this posts: Re: Why strong name at all? (1)
Re: Why strong name at all? (2)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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