Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a C++ Com component ('Component1.tlb'). I generated a managed dll (Component1.dll) using tlbimp.exe.
when I tried to register this 'Component1.dll' using Regasm.exe I got error:

RegAsm : error RA0000 : Failed to load Component1.dll because it is not a valid .NET assembly.
Posted

1 solution

regasm is for registering .net assemblies that expose COM components. To register non-.net files use regsvr32
 
Share this answer
 
Comments
Member 9966300 19-Jun-15 8:16am    
But with regsvr32, I got error:
"The module Component1.dll was loaded but entry-point DLLRegisterServer was not found".
Make sure that Component1.dll is a valid DLL or OCX file and then try again"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900