<p>When I drag &amp; drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac?</p>

[{'answer_id': 53061, 'author': 'Jonas', 'author_id': 5480, 'author_profile': 'https://Stackoverflow.com/users/5480', 'pm_score': 4, 'selected': True, 'text': '<p>My guess would be that you have to do it as an administrator...try either disabling UAC, or using gacutil.exe to add your assembly.</p>\n'}, {'answer_id': 53063, 'author': 'Gulzar Nazim', 'author_id': 4337, 'author_profile': 'https://Stackoverflow.com/users/4337', 'pm_score': 1, 'selected': False, 'text': '<p>Use <a href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr06/hey0428.mspx" rel="nofollow noreferrer">runas</a> command to run <a href="http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx" rel="nofollow noreferrer">gacutil</a> as a user with local admin rights to register the dll to GAC.</p>\n'}, {'answer_id': 53561, 'author': 'aksangrav', 'author_id': 5149, 'author_profile': 'https://Stackoverflow.com/users/5149', 'pm_score': 0, 'selected': False, 'text': '<p>You may not locate gacutil.exe in your windows folder while using vista. It\'s not included because of vista\'s "Logo Program blah blah" thing. Try to use windows installer to add your assemblies into gac. This is the recommended way.</p>\n\n<p>And never forget this traditional ogrish proverb: "Bi siktir git cay koy".</p>\n'}, {'answer_id': 74013, 'author': 'dummy', 'author_id': 6297, 'author_profile': 'https://Stackoverflow.com/users/6297', 'pm_score': 0, 'selected': False, 'text': '<p>You can do that with gacutil.exe. It is located in:</p>\n\n<pre><code>C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\n</code></pre>\n\n<p>It is only there though, if you installed the .NET SDK (not just the .Net Redistributible).\nBut you can copy it from your developer machine.</p>\n'}, {'answer_id': 193418, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>The assembly (dll) also needs to be strongly named if it\'s going to reside in the GAC.</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/library/wd40t7ad%28VS.80%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/wd40t7ad(VS.80).aspx</a></p>\n'}, {'answer_id': 17207537, 'author': 'Peter T.', 'author_id': 1729347, 'author_profile': 'https://Stackoverflow.com/users/1729347', 'pm_score': 0, 'selected': False, 'text': '<p>Using Command line, use the following steps:</p>\n\n<p>Open Visual Studio Command Prompt</p>\n\n<p>First open Visual Studio Command Prompt (For Visual Studio 2008 the path is Programs --> Visual Studio 2008 --> Visual Studio Tools --> Visual Studio 2008 Command Prompt ) All the files mentioned in the following steps will be created in the Visual Studio 2008 Command Prompt Path. In my case it is C:\\Program Files\\Microsoft Visual Studio 9.0\\VC</p>\n\n<ol>\n<li>Generate a KeyFile \nsn -k keyPair.snk </li>\n<li>Get the MSIL for the assembly \nildasm SomeAssembly.dll /out:SomeAssembly.il </li>\n<li>Rename the original assembly, just in case \nren SomeAssembly.dll SomeAssembly.dll.orig </li>\n<li>Build a new assembly from the MSIL output and your KeyFile\nilasm SomeAssembly.il /dll /key=keyPair.snk</li>\n<li>Install the DLL in to the GAC\ngacutil -i SomeAssembly.dll</li>\n</ol>\n'}]
['https://Stackoverflow.com/questions/53057', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/31505/']