Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6390889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:36:13+00:00 2026-05-25T03:36:13+00:00

I get a weird exception on a XP machine when I run a LINQ

  • 0

I get a weird exception on a XP machine when I run a LINQ query.

{"The specified cryptographic algorithm is not supported on this platform."}

at System.Security.Cryptography.CapiNative.AcquireCsp(String keyContainer, String providerName, ProviderType providerType, CryptAcquireContextFlags flags, Boolean throwPlatformException)

There is no inner exception and the stacktrace is above.

I would expect that kind of exception when cryptography providers are in play etc., but with LINQ, I have no idea. I have to admit I am new to LINQ.

Here’s the slightly simplified LINQ Query in EF 4.1:

using (var c = new MyContext())
{
    var v = (from item in c.Items where (item.ID==someid) select item).FirstOrDefault();
    return v;
}

Any insight?

EDIT:
As already noted in the comments section below, I am using .NET 4.0 with EF 4.1, the connection string is a plain ol’ app.config string with no crpto settings or other connection string options applied.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:36:14+00:00Added an answer on May 25, 2026 at 3:36 am

    I strongly suspect it’s the security being used trying to talk to the database – check your connection string and any options you have with respect to encrypting the connection string itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this weird exception when i run my app on both the emulator
I'm trying to make LocationManager work and get weird security exception. When I run
This is kind of a weird question but... If I run this query in
Hello I get a weird error in this code: function validateForm(aform) { var s=;
I have this real weird exception when issuing a basic SELECT, using MySQL 5.1.32-community
Just a weird exception that I can't get my head around My code: <ListBox
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem
i'm trying to get started with silverlight 2. i have a weird bug. every
I've a weird string escape problem with my PHP script. I'm trying to get
We get the following error; The request was aborted: Could not create SSL/TLS secure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.