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 6722061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:24:11+00:00 2026-05-26T09:24:11+00:00

As far as I can see, it is necessary to have access to write

  • 0

As far as I can see, it is necessary to have access to write in the machine key store. So how do I assign this permission to a user? I need to ask support people to grant a user the necessary permissions to run Moq, but I don’t know what exactly to ask for.

UPDATE: As Tim requested below, I’m updating with some information that might be useful to the problem understanding, as follows:

Apparently, Moq relies on Castle to build mock objects, and the Castle framework needs to write to machine key store. When I try to run the tests, the testing framework return the error “Unable to obtain public key for StrongNameKeyPair”.

When I went to support guys, they temporarily gave me administrative privileges, and everything ran as expected. Even after they removed the admin permissions, I was able to execute my tests.

My conclusion of this was that I need some permission to write on this machine key store. What I need to know is where exactly I need to have writing permissions, so I could ask support for a specific writing permission instead of admin permissions, for the other development environments, what would be denied for sure.

Thanks in advance!

  • 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-26T09:24:11+00:00Added an answer on May 26, 2026 at 9:24 am

    After some research, I was able to find the exact directory I need to have write permission in order to execute Moq (in fact, it’s a Castle requirement). The user must have acces to the following folder:

    C:\Documents and Settings\AllUsers\ApplicationData\Microsoft\Crypto\RSA\MachineKeys

    (Assuming “C” is your system folder)

    With this permission, the user running a mocking project with Moq won’t need admministrative privileges in the local machine. Here is a reference:

    MVC Testing using a mocking framework (Moq)

    Hope it helps.

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

Sidebar

Related Questions

Working on a carousel lightbox tooltip demo and as far I can see in
What are the possible values for jqXHR.status ? So far, I can see the
As far as I can tell, this is isn't possible, so I'm really just
As far as I can tell, the best way to do this is do
I have so far been a dedicated Wordpress user, but have been researching other
So far I can understand HTML.ActionLink and URL.RouteURL but still trying to absorb where
I am working on a contact list project and so far i can add,modify
I'm new to Java, and while reading documentation so far I can't find any
I'm writing a program to generate some wild visuals. So far I can paint
As far as I can understand from the java.lang.Thread docs, and from other questions

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.