Hi
I'm a newbye in the Enterprise application. I 'm studing how to access
to a Com+ component hosted in IIS 6 using remoting. I would like to use
an external interface in the assembly "B" shared between client and
server and have my serviced components in the assembly "A", that depend
on B, hosted in IIS, registered and included in a com+ application in
the component services console.
this is my interface definition in the assembly "b":
[Guid("940C9B53-C892-4eb3-86DD-93A83EFEF83D")]
[ComVisible(true)]
public interface IObjectFactory
{
string CreateObject(string name);
}
and this is my Object definition in "a"
Guid("C03C1408-0BCA-494e-9F08-08099CE8BEFD")]
[ClassInterface(ClassInterfaceType.AutoDual)]
[Transaction(T ransactionOption.Required)]
[JustInTimeActivation(true)]
[ComVisible(true)]
public class ObjectFactory : ServicedComponent, IObjectFactory
{....}
when I try to use the remote object everithing go right (the
instantiation and the casting to Iobjectfactory) but when I try to call
the method i receive an "interface not found error"
ArgumentException: Interface not found.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) +1779458
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) +826
OtInterface.IObjectFactory.Object(String name) +0
CreateCan you help me?
thanks in advance
Alessandro
Alex - 13 Apr 2006 15:10 GMT
Ok , I found out what was the problem , tha assembly "B" containing
the interfaces nedeed to be installed in the gac as well as the
assembly "A"...