how to fix cannot register assembly. System cannot find the file specified.

John Smith 0 Reputation points
2024-04-14T23:36:14.17+00:00

I have the below error and have no idea how to resolve. I am attempting to setup a visual basic application under visual studio 2022 .net 8.0 which will be accessed from excel vba. Greatly appreciate any recommendations on how to resolve. MSB3217 Cannot register assembly "C:\Users\DeskTop-10\Documents\visual studio projects\MetaData_Extractor\MetaData_Extractor\bin\Debug\net8.0-windows10.0.22621.0\MetaData_Extractor.dll". Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2024-04-16T02:08:55.5866667+00:00

    Hello @John Smith,

    I notice that you mentioned "when Register for COM", not very sure, but is this thread helpful: Registering Assembly fails with error unable to resolve assembly? Perhaps the setup was not the same.

    Kind Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.