KeyManager in .Net 4.0 (wodSSH / wodSSH.NET)
Hello,
I'm trying to use the KeyManager but I keep getting the following exception:
[code]Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.[/code]
I'm using the latest version SSH.Net
Thanks for your help.
Dotan
Re: KeyManager in .Net 4.0
Hi Dotan,
Problem is that VS2010 projects must be built as .NET 4 framework project. There is no option to build with an older runtime. So you are receiving such error because KeyManager is built using .NET 2 framework.
Workaround fro this problem is to go to C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin. Either edit or create sgen.exe.config and add this text inside:
[code]<?xml version = 1.0 ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy= true >
<supportedRuntime version= v4.0 />
</startup>
<runtime>
<generatePublisherEvidence enabled= false />
</runtime>
</configuration>[/code]
Let us know how it goes.
Regards,
Drazen
Re: KeyManager in .Net 4.0
Hello Drazen,
Thank you for the quick response.
Unfortunately this <startup useLegacyV2RuntimeActivationPolicy= true > causes some unexpected behavior in my WPF application such as images and icons not being loaded.
Is there any chance you can compile the KeyManager assembly using .NET 4 ?
Kind regards,
Dotan
Re: KeyManager in .Net 4.0
Dotan,
I'll check with our developers. I'll let you know more as soon as i hear back from them.
Regards,
Damba
Re: KeyManager in .Net 4.0
Dotan,
Can you contact us at techsupport@weonlydo.com ?
I believe we did manage to compile it for 4.0.
Regards,
Damba
Re: KeyManager in .Net 4.0
Hello,
Are there any news in this area? It will be good to have WeOnlyDo.Security.Cryptography.KeyManager.dll library compiled in .NET 4. Our code is only module for another application so we don't have control over config file.
Thanks,
Lukas
Re: KeyManager in .Net 4.0
Hello Lukas,
Yes we have KeyManager.NET 4.0 version.
Can you please send us email to techsupport@weonlydo.com
Regards,
Drazen