Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
Can't find. How and where it stored in my PC? Need source. Please help.

EDIT:
Why I need THIS source: I have build from founded sources a project for AES 256 encryption, but is doesn't returns an Exception when I tried to decrypt with WRONG key, BUT this library returns NULL if key is wrong.
Posted
Updated 23-Jan-14 9:37am
v4
Comments
Matt T Heffron 23-Jan-14 16:31pm    
If you really NEED to throw an exception if the decryption key is wrong, then just check for getting null back from the routine and throw the exception yourself.
Using exceptions for handling "reasonable" errors (like using the wrong key) is generally not a good design.
They really are for exceptional conditions.

Source code? It isn't. You only get the binaries with a standard installation, no source.

However, you should be able to find it here: http://referencesource.microsoft.com/netframework.aspx[^]
 
Share this answer
 
Comments
Member 10545052 23-Jan-14 15:36pm    
Why I need a source: I have build from founded sources a project for AES 256 encryption, but its doesn't returns an Exception when I tried to decrypt with WRONG key, BUT above library returns NULL if key is wrong.
Its not stored on your PC.

Either you can search for the specific file you want in Google (for example, if I wanted the Control source, I'd search for System.Windows.Forms.Control.cs), or you can download the Microsoft .NET Source References from here[^].

Be aware though, only download with Internet Explorer, the files do not download correctly with Chrome or FireFox. The sources are also not laid out very well, you may have to download multiple frameworks to find the files you need and they are really poorly organized.
 
Share this answer
 
v2
Comments
Ron Beyer 23-Jan-14 15:42pm    
I gave the link to download the source, so why the single star down-vote? Does it matter why you need the source? I (and others) gave you the link to download it!
Member 10545052 23-Jan-14 15:55pm    
I NOT voted your answer at all. It's not me.
Ron Beyer 23-Jan-14 16:01pm    
Either way, the link is there, you can download the sources and do whatever you need with them.
Member 10545052 23-Jan-14 16:00pm    
And I not understood what to type in Cymbol File Location. Help if you can, please.
Ron Beyer 23-Jan-14 16:01pm    
Its just the place to install the sources to, pick a folder you want a lot of source files extracted to.
It's a part of .NET Framework. You can find all the related classes registered in GAC in Windows -> Assembly folder.

If you are curious to know the source code you can download and make use of ILSpy - http://ilspy.net/[^] to reverse engineer the DLL's
 
Share this answer
 
v4
Comments
Member 10545052 23-Jan-14 15:38pm    
I have edited question, please review.
Ranjan.D 23-Jan-14 15:51pm    
It's really hard for me to understand what founded sources and their implementation might though exception if you are decryption with wrong key.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900