KeyManager in .Net 4.0 (wodSSH / wodSSH.NET)
by Dotan, Sunday, May 22, 2011, 22:59 (4934 days ago)
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
by woddrazen, Sunday, May 22, 2011, 23:56 (4934 days ago) @ Dotan
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
by Dotan, Monday, May 23, 2011, 08:48 (4934 days ago) @ woddrazen
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
by wodDamir, Monday, May 23, 2011, 11:39 (4934 days ago) @ Dotan
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
by wodDamir, Friday, May 27, 2011, 16:03 (4929 days ago) @ wodDamir
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
by Lukas Belza, Friday, September 07, 2012, 17:49 (4460 days ago) @ wodDamir
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
by woddrazen, Friday, September 07, 2012, 17:59 (4460 days ago) @ Lukas Belza
Hello Lukas,
Yes we have KeyManager.NET 4.0 version.
Can you please send us email to techsupport@weonlydo.com
Regards,
Drazen