Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/SampleZips/101efef5-9071-49ac-9ce9-c5a5fe5cc896CSharp.zip

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

1 Answer 1

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

 
discard

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.