About COM Registration for .NETFramework

Asked 2 years ago, Updated 2 years ago, 138 views

One .Visual Studio solution for NetFramework 4.0
When I tried to run from the IDE,

Unable to register assembly "XXX.dll" - Access denied.Verify that you are running the application as an administrator.Access to registry key 'HKEY_CLASSES_ROOT\XXX.XXXDef' denied

The build failed with the message (the build itself was successful and COM registration failed).but)

This solution is
Project 1 (execution file.exe)
Project 2 (Functional Collection.dll)
is configured to
Project 1 refers to Project 2
If you run VisualStudio with administrator privileges, you can run it without errors and
on other machines. Copy exe and dll to work without having to register dll with Regsvr32

I have a question. Is there any point in COM registration of libraries for .NetFramework in the first place?

c# visual-studio com

2022-09-30 21:21

2 Answers

Does Project 2 (Functional Collection.dll) have a "Make Assembly COM Visible" check?

今 I can't start VisualStudio right now, so I can't show you the exact location.Sorry


2022-09-30 21:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.