c# - PlatformNotSupportedException when executing a general LINQ query -
When I run a LINQ query, I get a strange exception on the XP machine.
{"The specified cryptographic algorithm is not supported on this platform."} On System.Security.Cryptography.CapiNative.AcquireCsp (String Key Container, String Provider Name, Provider Type Provider Type, CryptAcquireContextFlags Flags , Boolean thumbnaillight exception) There is no internal exception and the stacktrace is up.
In the cryptography provider game etc. I would expect that exception, but I have no idea with LINQ. I must admit that I'm new to LINQ.
EF 4.1 has a slightly simplified LINQ query: using (var c = new MyContext ()) {var v = ( Items where c.Items (item.id == someid) choose items). FirstOrDefault (); Return vi; } Any insights?
Edit: As mentioned in the comment section below, I am using .NET 4.0 with EF 4.1, the connection string does not have any crpto settings or other connection string options Apply a plain ol 'app.config string with
I strongly suspect that using security in an attempt to talk to the database Going - check your connection string and you have any options regarding encryption of connection strings.
Comments
Post a Comment