Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is this error
Message
De
02/03/2016 02:51:19
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Common Language Runtime
Versions des environnements
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01632371
Message ID:
01632411
Vues:
58
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I'm getting the following error trying to build a project in Windows 10:
>
>Severity Code Description Project File Line Suppression State
>Error Cannot register assembly "C:\_Siriusware\Main\Siriusware.Middleware\Siriusware.Middleware\bin\Debug\Siriusware.Middleware.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\Siriusware.Middleware.ErrorState' is denied. Siriusware.Middleware
>
>I know that I can fix it if I run VS as Admin. However, why do I need to run VS as Admin in order to just build the project?
>
>Thanks in advance.

The answer is in the error : Access to the registry key 'HKEY_CLASSES_ROOT\Siriusware.Middleware.ErrorState' is denied."

Writing to the registry requires elevated rights. If this is a COM assembly you could turn off the registration (which IAC only needs to be done if the interface changes). If you do need to re-register than use regasm or, as a one off, set the COM interop flag and run as Admin.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform