Reference .NET assembly in Access?

M

Mike

Hi. I've built a .NET assembly (3.5) and when I attempt to reference it
within an Access 2007 app I get the error "can't add reference to the file".
I've set the .NET assembly to be visible to COM interop, but still I cannot
access it from Access.

How do I reference a .NET assembly from Access?

Thanks!
 
A

Albert D. Kallal

Mike said:
Hi. I've built a .NET assembly (3.5) and when I attempt to reference it
within an Access 2007 app I get the error "can't add reference to the
file".
I've set the .NET assembly to be visible to COM interop, but still I
cannot
access it from Access.

How do I reference a .NET assembly from Access?

Thanks!

You have to ensure that you setup the .net class to have some type of public
interface exposed.

I am not a .net guy, but a normal assembly in .net is not a com object that
can be consumed by windows applications as an com object.

You have to setup the.net app to expose itself as such, and then register it
correctly.

Here is some more info that should get you going:

http://support.microsoft.com/?kbid=813809
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top