I am trying to upgrade a set of projects from VB6 to VB.NET 2.0. This project includes a set of library code and application code. Prior to upgrading, my VB6 application code would load my library code using the standard mechanism CreateObject() with a ProgID.
I have about 8 different library assemblies, all of which have strong names, are using the same .NET version (2.0), are compiled with x86 compatibility, and are in the GAC. When I try to load my libraries using CreateObject and my ProgIDs I get an ActiveX error. I have tested with ADODB ("ADODB.Command") and it successfully grabs the COM object. I am not sure what I am doing wrong.
I am also confused as to whether I should be using the System.Runtime.Interop class attribute for the library classes, or if I should configure them as ComClass implementations. I'm also not sure if I need to use those same attributes inside of the AssemblyInfo.vb file.
One other difference I noticed is that AssemblyInfo.vb for the upgraded vb projects is in the root directory, as opposed to when i make a new project and it is under "MyProject", might not matter but I want to provide all the info I can. Any bit of help that could be provided would be awesome.
Thanks!