-1

i am trying to add an assembly to the GAC but the error indicates that "Failure adding assembly to the cache: Administrator permissions are needed to use the selected options. Use an administrator ommand prompt to complete these tasks."

I am using Windows XP SP3 and user account type is Administrator. Please refer to the image below.

TIA

Please refer to the image https://i.stack.imgur.com/TZXpc.png

xscape
  • 3,318
  • 9
  • 45
  • 86

2 Answers2

1

You are administrator on your machine but you don't run the visual studio command prompt (or cmd.exe) as an admin ...

David Brabant
  • 41,623
  • 16
  • 83
  • 111
  • I am running it as administrator by doing the right click, run as, both in cmd.exe or vs command prompt – xscape Jun 13 '12 at 01:04
0

I was able to solve my problem by additional commands via command prompt

C:\WINDOWS\system32>runas /user:computerName\administrator cmd

Check this out

xscape
  • 3,318
  • 9
  • 45
  • 86