I ported the development to another computer, and if I run the project, I have this exception:
Failed to get public key for StrongNameKeyPair.
HibernateException: Failed to create proxy instance
On the original computer, it works fine without problems.
I found on google that this is a problem with some encryption, and I have to try "sn -m n", I don’t know how to do this. sn.exe is located in more folders, I tried some startup from the command line, but it writes:
Could not open registry key - Unable to format error message 00000005
I don’t know if the problem is that NHibernate or not, there are more similar whitch dialogs, and this exception throws out only in one case.
There is an exception part for code exclusion:
public IList<DTO> GetAll(GridSortOptions sortOptions, DTOListModel<DTO> listModel)
{
return GetAllCriteria(sortOptions, CreateCriteria(), listModel).List<DTO>();
}
None of the projects using the solution uses. I do not understand what exactly these errors mean and what I should look for.
source
share