Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Exception in RSACryptoServiceProvider

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ajayleo@gmail.com - 06 Apr 2007 01:13 GMT
Hello

The following line of code throws an exception" The System Cannot find
the file specified".
This is on .Net 2.0.

RSA  rsaKey = new RSACryptoServiceProvider(); //Creating with Default
key

Appreciate the help
Thanks

rsaKey shows up as follows during debugging.

-rsaKey
{System.Security.Cryptography.RSACryptoServiceProvider}
    -base
{System.Security.Cryptography.RSACryptoServiceProvider}

    KeyExchangeAlgorithm    "RSA-PKCS1-KeyEx"

    - KeySize      ((System.Security.Cryptography.AsymmetricAlgorithm)
(rsaKey)).KeySize'
                             threw an exception of type

'System.Security.Cryptography.CryptographicException'

    +base            {"The system cannot find the file specified.\r\n"}
Latish Sehgal - 06 Apr 2007 04:15 GMT
Is this a web app or Win Forms?
The associated account for the app should have rights over the key
store so that the key can be created.

There are already a couple of similar threads out there.
Check out
http://groups.google.com/group/microsoft.public.dotnet.security/browse_thread/th
read/c10f7a649d751fe4/1b90345a0e2c2bee%231b90345a0e2c2bee

http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.framework.aspnet.sec
urity/2002-06/0062.html


Latish

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.