• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1149
  • Last Modified:

Cannot register assembly - Visual Studio

Hi there,

We have a user that is trying to configure a Windows Server 2012 R2 server so that they can use this and get rid of their old Windows Server 2003 server.  The user has installed Visual Studio 2008 and 2010 but when he tries to register an assembly, he gets this error:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3912,5): error MSB3216: Cannot register assembly "D:\Development\Automated Build\Builds\WellManager\rep_develop\sourcecode\NPD\bin\Release\LineMergeConfirmSave.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\LineMergeConfirmSave.ConfirmSave' is denied.

He is already running VS as an administrator but he's still getting permission issues.  Any ideas/suggestions would be great!

Thanks,
- Christian
0
Christian Palacios
Asked:
Christian Palacios
  • 2
2 Solutions
 
Rainer JeschorCommented:
Hi Christian,
so his account is in the local admin group AND he explicitely starts Visual Studio with right-click -> Run as administrator?
HTH
Rainer
0
 
sarabandeCommented:
you may try to unregister the existing assembly by

regasm /u <full_quoted_path_to_assembly>

from a command window which you also started 'as administrator'. note, it is not sufficient to have logged in as administrator (see also comment of Rainer).

Sara
0
 
Christian PalaciosSenior IT Systems AdministratorAuthor Commented:
Hi there,

Yes, the user is a local administrator and is running VS with "Run as administrator".  

Sara:  I'll see if there is an existing assembly.  This is a brand new VM, which he is configuring VS and his code on so I don't know if there is already an assembly.  

Thanks!
- Christian
0
 
Christian PalaciosSenior IT Systems AdministratorAuthor Commented:
Thank you for your replies.  The developer who is taking care of this is currently busy and can't try this for another week or so.  I'll send an update when he has tested it.

- Christian
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now