RSACryptoServiceProvider on Windows Phone

Feb 1, 2012 at 9:01 AM

I'm confused because MSDN says that Windows Phone 7.1 supports the RSACryptoServiceProvider, but yet I cannot see/access it in the namespace:

Is the MSDN document just wrong?

Feb 1, 2012 at 3:45 PM
Edited Feb 1, 2012 at 3:47 PM

Interesting.  I actually hadn't looked to see if they added it to Mango.  First, are you sure you're using the correct developer version of the WP7 tools?  And are you sure you've added all the references needed?  There may be a separate cryptography assembly reference that needs to be added to gain access.

The RSACryptoService Provder is in:  mscorlib.Extensions.dll

Feb 7, 2012 at 4:57 AM

Yep, I overlooked the fact that it was in the mscorlib.Extensions.dll. After I added that, everything worked as expected.