Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / April 2006

Tip: Looking for answers? Try searching our database.

Interfaces and component services

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 12 Apr 2006 09:02 GMT
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"...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.