Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to compile I get

Error 1 Cannot register assembly "C:\Users\Patrick\Desktop\DynamicBiking\CSharp\bin\Debug\DynamicBiking.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\DynamicBiking.BikingTrackModeCmd' is denied. DynamicBiking2010

Trying to compile this one:

I have administrator priveleges

share|improve this question
If you're running under Windows 7, I wouldn't try to compile things from your desktop. That might lead to problems. Try compiling in a directory off of root to see if that helps. – Michael Todd Sep 1 '10 at 21:38
up vote 3 down vote accepted

Right click on the shortcut for your development environment and 'Run as Administrator'

share|improve this answer
I don't that option when I right click – patrick Sep 3 '10 at 18:41
@iterationx Try holding down the shift key prior to right-clicking the shortcut. Also, make sure that you're right-clicking on devenv.exe (and not a link to it) to ensure that the "Run as" option is available. – Michael Todd Sep 4 '10 at 3:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.