this is my problem with VS :S
in the first project :
System.Security.Cryptography.AesCryptoServiceProvider obj;
everything is ok
in the second project:
System.Security.Cryptography.AesCryptoServiceProvider obj1;
it doesn’t recognize the AesCryptoServiceProvider?!!
is VS using different packages or what ?!
updated: changed the variable name but still not working
Check if both projects are referencing
System.Core. Probably only the first one has it. You’ve to add it on both to be able to useAesCryptoServiceProvider.Moreover, as you can see here
AesCryptoServiceProvideris only available since .NET 3.5. Check your project’s properties, in particular the Target Framework.