Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ctrl-C with error Pin
A.Wegierski19-Aug-03 19:20
A.Wegierski19-Aug-03 19:20 
GeneralRe: Ctrl-C with error Pin
Ista18-Aug-03 5:58
Ista18-Aug-03 5:58 
GeneralWhat's the point of Remoting if you need to "Add Reference" Pin
devvvy17-Aug-03 22:20
devvvy17-Aug-03 22:20 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 3:27
James T. Johnson18-Aug-03 3:27 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 5:20
devvvy18-Aug-03 5:20 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 5:44
James T. Johnson18-Aug-03 5:44 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
devvvy18-Aug-03 6:51
devvvy18-Aug-03 6:51 
GeneralRe: What's the point of Remoting if you need to "Add Reference" Pin
James T. Johnson18-Aug-03 11:27
James T. Johnson18-Aug-03 11:27 
Q1: Yes, you publish the object implementing your shared interface
Q2: No, you can use Singleton mode as well as SingleCall
Q3: You don't have to reference the server assembly, just the shared assembly because your client code should look something like:

try
{
  //Retrieve remote object proxy (WellKnown object - server-activated SingleCall):
  IRemoteObj obj = (IRemoteObj) Activator.GetObject(
    typeof(IRemoteObj), // <-- Note the change from CRemoteObj to IRemoteObj
    "http://localhost:8085/CRemoteObjURI"
  );
...
The Type passed in is simply to tell the Activator what type of object it should marshal back and forth between server and client. Your specific object is specified by the second parameter which includes the name for that object.

Hope that makes some sense,

James

"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think.
" - Thick as a Brick, Jethro Tull 1972

GeneralRe: What's the point of Remoting if you need to &quot;Add Reference&quot; Pin
devvvy18-Aug-03 15:07
devvvy18-Aug-03 15:07 
GeneralRe: What's the point of Remoting if you need to &quot;Add Reference&quot; Pin
James T. Johnson18-Aug-03 15:26
James T. Johnson18-Aug-03 15:26 
GeneralRe: What's the point of Remoting if you need to &quot;Add Reference&quot; Pin
devvvy18-Aug-03 18:05
devvvy18-Aug-03 18:05 
QuestionWhere r the Shape and Line Controls??? Pin
pShay17-Aug-03 21:43
pShay17-Aug-03 21:43 
AnswerRe: Where r the Shape and Line Controls??? Pin
Sascha Andres17-Aug-03 23:27
Sascha Andres17-Aug-03 23:27 
AnswerRe: Where r the Shape and Line Controls??? Pin
Ista18-Aug-03 16:59
Ista18-Aug-03 16:59 
Generalexposing remoting from ASP.NET Pin
devvvy17-Aug-03 20:37
devvvy17-Aug-03 20:37 
Question&quot;as&quot; keyword in C#? Pin
devvvy17-Aug-03 20:06
devvvy17-Aug-03 20:06 
AnswerRe: &quot;as&quot; keyword in C#? Pin
Roger Alsing17-Aug-03 20:10
Roger Alsing17-Aug-03 20:10 
AnswerRe: &quot;as&quot; keyword in C#? Pin
J. Dunlap17-Aug-03 20:17
J. Dunlap17-Aug-03 20:17 
GeneralRe: &quot;as&quot; keyword in C#? Pin
devvvy17-Aug-03 20:39
devvvy17-Aug-03 20:39 
AnswerRe: &quot;as&quot; keyword in C#? Pin
Russell Morris18-Aug-03 4:30
Russell Morris18-Aug-03 4:30 
GeneralRe: &quot;as&quot; keyword in C#? Pin
devvvy18-Aug-03 5:11
devvvy18-Aug-03 5:11 
GeneralMy Network Places Pin
Nick Seng17-Aug-03 17:04
Nick Seng17-Aug-03 17:04 
GeneralRe: My Network Places Pin
Mazdak17-Aug-03 19:48
Mazdak17-Aug-03 19:48 
GeneralRe: My Network Places Pin
Nick Seng17-Aug-03 20:02
Nick Seng17-Aug-03 20:02 
GeneralProblem whit loops :x Pin
heelios17-Aug-03 16:03
heelios17-Aug-03 16:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.