RegAsm : error RA0000 : Could not load file or assembly 'System.Runtime, Version=6.0.0.0' .... The system cannot find the file specified

97 views Asked by At

I have two dll's that I need to register to enable an API for a third party software I use. This software was recently updated and when I installed the new version and needed to unregister the old dll's and re-register the new ones. In the past, I followed the instructions which were to use regasm with the command below.

regasm "path\to\file" /register /tlb /codebase

The problem is that with this latest update, when I run that command now I get the following error.

RegAsm : error RA0000 : Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

When I try to look this error up, I mainly get answers for people who are compiling their own librarys or code using visual studio or something like that, not for someone just trying to register a dll someone else made.

I also saw an indication that I might need to use regsvr32.exe instead of regasm.exe. I tried that but for one, I saw that regsvr32.exe can not create a tlb and I end up getting an error saying "The module was loaded but the entry-point DllRegisterServer was not found".

I tried installing the .NET 6.0 SDK and restarting my computer but that didn't work either.

I was wondering if anyone else had an idea why I am getting this error now and if there is anything I can do to solve it?

0

There are 0 answers