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:
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
You can run a command-line tool called the Assembly Registration Tool (Regasm.exe) to register or unregister an assembly for use with COM. Regasm.exe adds information about the class to the system registry so COM clients can use the . NET Framework class transparently.
RegAsm.exe is a legitimate file process developed by Microsoft Corporation. It is associated with Microsoft.NET Assembly Registration Utility. The file is located in C:\Windows\Microsoft.NET\Framework\ by default.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With