KeyManager in .Net 4.0 (wodSSH / wodSSH.NET)

by Dotan, (5094 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

locked

Re: KeyManager in .Net 4.0

by woddrazen @, (5094 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

locked

Re: KeyManager in .Net 4.0

by Dotan, (5093 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

locked

Re: KeyManager in .Net 4.0

by wodDamir @, (5093 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

locked

Re: KeyManager in .Net 4.0

by wodDamir @, (5089 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

locked

Re: KeyManager in .Net 4.0

by Lukas Belza, (4620 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

locked

Re: KeyManager in .Net 4.0

by woddrazen @, (4620 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

locked