No Such interface supported (COM+ msmq)

G

Guest

Environment: Server 2003, COM+, MSMQ in workgroup mode

I keep getting the following error/Exception
System.InvalidCastException
Message: No Such interface supporte
CON Exception #: 0x8000400

Created que with the following (no problem)
MessageQueue mq = MessageQueue.Create(@".\Private$\MyPrivateQueue")

when I Execute the following C#

iQc =(IQEmpInsert)Marshal.BindToMoniker("queue:" + @".\Private$\MyPrivateQueue")

I am attempting to use the interface on the following Queued Component under COM+

public interface IQEmpInser

void Insert (int empData, string cnnstr )


[Transaction(TransactionOption.Required)
[Guid ("A4DB88C2-D928-3B92-8D77-1C8C9D547D03")
[InterfaceQueuing(Interface = "Business.IQEmpInsert")
[ClassInterface(ClassInterfaceType.AutoDispatch)
public class busEmployee : ServicedComponent, IQEmpInser



Thanks all
 
G

Guest

Sorry new to MSMQ and Queued Components, apparently you can only used the queus that are automatically created for the component and cannot route
 

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

Similar Threads


Top