HighTechTalks DotNet Forums  

Creating instance of remote server object

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Creating instance of remote server object in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Cairn
 
Posts: n/a

Default Creating instance of remote server object - 02-17-2007 , 09:59 AM







I am attempting to create a client activated system. I have a interface dll
which contains the interface to be used, this assembly is then referanced in
both client and server. The server implemenation is then split in to a DLL
which contains the server code, and an app which creates and instance of the
server code. (This is so that I have a console app for debuging, and a
service app for final release).
My question, in the client when I call Activator.CreateInstance what name do
I used for the assemblyName. I have attempted differant names but all of them
rasied exceptions. I also noted looking in the newsgroup where it was
mentioned registering the bits within the GAC, is this required and how

Thanks in advance

Reply With Quote
  #2  
Old   
Oliver Sturm
 
Posts: n/a

Default Re: Creating instance of remote server object - 02-18-2007 , 01:51 PM






Hello Cairn,

Quote:
My question, in the client when I call Activator.CreateInstance what name
do
I used for the assemblyName. I have attempted differant names but all of
them
rasied exceptions.
I'm not sure I understand this part of your question. On the client, you
would normally call Activator.GetObject(), not CreateInstance, and pass
the URL of the service, not a reference to any assembly. It would probably
help if you posted some sample code that shows what exactly you're doing.

Quote:
I also noted looking in the newsgroup where it was
mentioned registering the bits within the GAC, is this required and how
I guess it depends on your definition of "the bits". In any number of
Remoting scenarios, you don't have to register any of the application
assemblies in the GAC.


Oliver Sturm
--
http://www.sturmnet.org/blog


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.