C# Implementing Interface AND Inheriting MarshalByRefObject

P

Paul

Have a problem/Question - I have created a C# class that
inherits from MarshalByRefObject as well as implements a
custom Interface that I have created.

The thing that is not working is that when I try to use
this class in a different assembly I cannot reference it
even when using it's namespace qualifier. It has been
refereced in my project. I even put the namespace in the
Imports/using statements in the top of the class file
(I've tried with both a vb client and cs client).

When using the VB client, I try to dimension a variable
with the following code:

Dim objInvoice as NECAFormProcessing.Invoice

(NECAFormProcessing is my namespace and Invoice is the
class name)

I get the following error:

Reference required to assembly 'NECAWorkerObjects'
containing the implemented
interface 'NECAFormProcessing.IOnlineForm'. Add one to
your project.

The assembly NECAWorkerObjects is where the interface
definition is found for the interface that the Invoice
class implements (IOnlineForm). Yes...the
NECAWorkerObjects assembly is referenced in my project.

Any quick thoughts?!?!
 
K

Klaus H. Probst

Maybe you're referencing the wrong version? Try doing a clean build. if the
interface is there the compiler should be able to see it.
 
G

Guest

Thanks...I've tried to clarify the question better and created a new thread above.

The thread is called "C# Class not implementing VB.NET Interface"

I've put some example code of a small app that I was able to re-produce the problem with.

Thanks again for the response.
 

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