0

Having an odd problem, the following code works on some computers, but on others it fails:

        var user = (from u in userRepository.Linq()
                    where u.Username == HttpContext.User.Identity.Name
                    select u).Single();

        var allCourses = user.UserCourses.Select(c => c.Course).ToArray();

The exception that is thrown is the "Creating a proxy instance failed", "Unable to obtain public key for strongnamekey.pair".

1 Answer 1

1

It looks like it could be a permission problem with the machine key. Have a look here for a resolution.

A longer description of the problem and it's background is available in this RhinoMocks discussion.

Sign up to request clarification or add additional context in comments.

1 Comment

Seems like this is the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.