I have read a zillion and one posts on this exact same problem, but
none of them has suggested anything that works for me. So...
I am using .Net Framework Version 1.1.4322
I have:
1. Created a C# Class Library project and tested it. It generates the
correct output when I use it from a tester class from another project
in the same solution
2. Generated a key and inserted the correct key information into the
AssemblyInfo.cs file as follows:
[assembly: AssemblyKeyFile("..\\..\\key.snk")]
3. Successfully registered the assembly in the GAC using gacutil (at
least, it tells me I successfully registered it...)
4. Used regasm to (again, it tells me) successfully register the
wrapper. I can see the .tlb in the same directory as the .dll
I have also created other, new projects in different locations with
slightly different results. Following the most excellent summary
provided in a post dated 2002-08-11, by Aleksy Nudelman, I tried first
creating the key, then creating a new project and inserting the key
information. Then, I registered it in the GAC using gacutil and
regasm. This time, I don't even have a .tlb file...
No matter what I do, I cannot instantiate the object in a classic ASP
page using Server.CreateObject("namespace.class"). The actual call to
Server.CreateObject does not generate any errors, but I get an "Object
Required" error the first time I try to access it.
(I even tried using the numeric GUID in the Servicer.CreateObject
call, but it REALLY didn't like that - "Invalid ProgId)
I would really like to get this to work, because a) I need it to do
what I wrote it to do, and b) it's my first real live .NET project for
production other than some ASP.NET pages to pull info out of our
Active Directory for an internal phone list.
As an aside, is there an easy way to tell if someone has answered a
post (mine, of course <g>) without searching through the entire list
for it?