Can a Windows Application be registered?

I have narrowed down my issue, Please see new ticket It works in VB.NET but not in C#