51

I registered one of my dlls on the development machine using regasm as below (ASP application)

In a cmd prompt, I navigated to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and did:

regasm /tlb "xxx.dll"

Now I made some changes in the dll. So I unregistered the dll using the command:

regasm /u xxx.dll /tlb:xxx.tlb

Then I registered the updated dll again with previous command. But the changes are not coming up in the project, so I doubt it's still pointing to the old dll. I restarted the machine, but that did not help. So:

  1. What are the ways to make sure my old dll is removed and the current one is new?
  2. Is there any physical path to check them manually?

UPDATE: The below solution fixed the issue.

To Register:

SET WorkFolder= '<directory>'
regasm.exe %WorkFolder%\xxx.dll /Codebase

To unregister.

SET WorkFolder= '<directory>'
regasm.exe /unregister %WorkFolder%\xxx.dll

1 Answer 1

79

Try

regasm /u "[full path to your DLL in double quotes]"

To re-register use

regasm /codebase "[full path to your DLL in double quotes]"

ignore the warning.

2
  • 6
    Regasm is located at C:\Windows\Microsoft.NET\Framework\v4.0. Apr 5, 2017 at 6:21
  • 1
    Depending on the version of Windows, RegAsm.exe may instead be located elsewhere. For example, C:\Windows\Microsoft.NET\Framework\v4.0.30319 and/or C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Dec 26, 2021 at 1:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.