>Hello all
>I created a DLL using c#.
>I tried to register it using RegAsm. But I get RA0000 error (: Failed to load '...\filename.dll' because it is not a valid .net assembly).
>
>I've never done before. So, I'm little lost on this.
>
>Can anyone tell me what I may be missing in my dll?
>
>Thank you in advance.
Are you sure you are registering the right file that is a compiled .NET assembly? The error message seems to suggest otherwise.
Also as Viv points out - you need to make sure that any COM components you want to access are marked as [ComVisible] otherwise no COM interfaces are created.
Keep in mind that you need to register components on all client machines as well. You might want to look at wwDotnetBridge and avoid all of this COM registration and instead access your COM components directly.
https://github.com/RickStrahl/wwDotnetBridge+++ Rick ---