Method not found: RandomNumberGenerator.GetBytes(Byte[], Int32, Int32)

hit this error on windows 7 pc.

 

according to msdn,
https://msdn.microsoft.com/en-us/library/dn823306%28v=vs.110%29.aspx

 

this api was introduced in .NET Framework Available since 4.6

Im currently using .NET Framework 4.5.

 

fix is to upgrade .NET Framework.

https://www.microsoft.com/en-us/download/details.aspx?id=53344

Leave a Reply

Your email address will not be published. Required fields are marked *