Could not load file or assembly 'System.Runtime.Seri­alization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec8­5d7bea7798e' or one of its dependencies.

Dec 2, 2011 at 12:34 PM

Hi

I have two projects for SilverLight 4
One on C # where your library works perfectly
And the Second project on VB.Net, in which at attempt to execute:

Dim oRSA As New RSACrypto(4096)
oRSA.PaddingProvider = New PaddingProviders.PKCS1v1_5
'Import the keys from XML
oRSA.FromXmlString(KeyBnk.ToString)

Gives out an error:
Could not load file or assembly 'System.Runtime.Seri­alization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec8­5d7bea7798e' or one of its dependencies. It is not possible to find the specified file. 

In both project I use
System.XML v2.0.50727

Dec 2, 2011 at 1:04 PM

Sorry in VB Project use System.XML v4.0.30319

and cant add at now System.XML v2.0.50727

Coordinator
Dec 2, 2011 at 5:57 PM

Download the latest source version.  You'll need to update the source to use the correct serialization assembly and recompile.