Use a DLL in ASP page

I'm trying to allow Binary Read/Write operations on an ASP page I have.  I found this MS article ( describing how to build a VB 5.0+ COM DLL to do it.  I only have VB.NET (2.0) on available, so I built a VB.NET DLL avaible to COM through COM Interop services.  I registered the DLL with .NET's RegAsm program and put it in the GAC with Gacutil.

When I try to create the object on my ASP page, I get this error:
Server object error 'ASP 0177 : 80070002'

Server.CreateObject Failed

/store/image.asp, line 56


What am I doing wrong here?  I'm attaching code on both the .NET component and the APS page
'.NET Component'
using System;
using System.IO;
namespace Netsmith
    public class BinaryFileTools
        public BinaryFileTools()
            //Constructor does nothing
        public byte[] ReadFile(String fileName)
            FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
            byte[] data = new byte[fs.Length];
            fs.Read(data, 0, (int)fs.Length);
            return data;
'ASP Page'
Dim BinaryFileTools
Set BinaryFileTools = Server.CreateObject("Netsmith.BinaryFileTools") '<=== failing line'

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mkosbieAuthor Commented:
THANK YOU! I didn't use /tlb with regasm.  Go figure.
You're welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.