HighTechTalks DotNet Forums  

Remoting - how to access server data?

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Remoting - how to access server data? in the Dotnet Distributed Applications forum.



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

Default Remoting - how to access server data? - 11-08-2007 , 04:53 PM






I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.


Reply With Quote
  #2  
Old   
sloan
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-08-2007 , 05:01 PM







If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

...

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote

Quote:
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.




Reply With Quote
  #3  
Old   
r norman
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-08-2007 , 07:26 PM



On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Quote:
If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.


Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.



Reply With Quote
  #4  
Old   
sloan
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-08-2007 , 08:56 PM



The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in jest.
...

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote

Quote:
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.




Reply With Quote
  #5  
Old   
r norman
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-08-2007 , 10:36 PM



On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Quote:
The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.

Thanks. I've already downloaded the sample. Now I have a lot of work
to do.

There is no choice about the data. The host is hard-wired to the
external equipment and the clients are scattered around the city.

And I have a choice between the host pushing and the client polling.
One of the hosts has a slow, congested DSL link to the rest of the
network and traffic levels are an issue with my current data pushing
scheme. There is an awful lot of data and the client only looks at a
small portion of it at any time. It is a lot easier for the client to
ask for what it wants than for the host to try to keep track of what
to send, different for each client.







Reply With Quote
  #6  
Old   
r norman
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-09-2007 , 11:35 AM



You may recall that I did admit to being a newbie in dotNet. Of
course WCF seems to be dotNet 3.0 and I am currently tied to Visual
Studio 2005 and dotNet 2 and don't feel like shelling out another
thousand bucks or so just to be that current. My socket TCP/IP
messaging has worked well through Dos and C through Windows and C++
and translated easily into dotNet and C#. There is a limit on just
how much I am willing to upgrade the infrastructure of the project if
it doesn't show up in the user interface where you can far more easily
justify the cost. There is always the response "it works now, why
should I pay X thousand dollars extra to get the same thing?". Yes,
the infrastructure is the most important part, but it is also the
hardest to sell.

On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Quote:
The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news3a7j3p9tpbjsldt4mq22ainphcp08s3hm (AT) 4ax (DOT) com...
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.



Reply With Quote
  #7  
Old   
sloan
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-09-2007 , 01:54 PM



3.0 is an "addon" to 2.0. It does not require a new version of VS200x. It
works with VS2005.

The framework is free.
The CTP is free.

So there is not a financial reason not to do it.


3.0 runs on XP, WinServer2003, Vista and WinServer2008.

........



"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote

Quote:
You may recall that I did admit to being a newbie in dotNet. Of
course WCF seems to be dotNet 3.0 and I am currently tied to Visual
Studio 2005 and dotNet 2 and don't feel like shelling out another
thousand bucks or so just to be that current. My socket TCP/IP
messaging has worked well through Dos and C through Windows and C++
and translated easily into dotNet and C#. There is a limit on just
how much I am willing to upgrade the infrastructure of the project if
it doesn't show up in the user interface where you can far more easily
justify the cost. There is always the response "it works now, why
should I pay X thousand dollars extra to get the same thing?". Yes,
the infrastructure is the most important part, but it is also the
hardest to sell.

On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news3a7j3p9tpbjsldt4mq22ainphcp08s3hm (AT) 4ax (DOT) com...
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.





Reply With Quote
  #8  
Old   
r norman
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-09-2007 , 02:02 PM



On Fri, 9 Nov 2007 13:54:43 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Does installing dotNet 3.0 on my system automatically give VS2005 the
ability to reference System.ServiceModel? (You see how much I don't
know?)

Quote:
3.0 is an "addon" to 2.0. It does not require a new version of VS200x. It
works with VS2005.

The framework is free.
The CTP is free.

So there is not a financial reason not to do it.


3.0 runs on XP, WinServer2003, Vista and WinServer2008.

.......



"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:5239j35ig21sncjgamomcdaa8tgc8k0q8c (AT) 4ax (DOT) com...
You may recall that I did admit to being a newbie in dotNet. Of
course WCF seems to be dotNet 3.0 and I am currently tied to Visual
Studio 2005 and dotNet 2 and don't feel like shelling out another
thousand bucks or so just to be that current. My socket TCP/IP
messaging has worked well through Dos and C through Windows and C++
and translated easily into dotNet and C#. There is a limit on just
how much I am willing to upgrade the infrastructure of the project if
it doesn't show up in the user interface where you can far more easily
justify the cost. There is always the response "it works now, why
should I pay X thousand dollars extra to get the same thing?". Yes,
the infrastructure is the most important part, but it is also the
hardest to sell.

On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news3a7j3p9tpbjsldt4mq22ainphcp08s3hm (AT) 4ax (DOT) com...
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.




Reply With Quote
  #9  
Old   
sloan
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-09-2007 , 02:09 PM




I googled "WCF Getting Started".

Found this:
http://www.thoughtshapes.com/WCF/GettingStarted.htm


"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote

Quote:
On Fri, 9 Nov 2007 13:54:43 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Does installing dotNet 3.0 on my system automatically give VS2005 the
ability to reference System.ServiceModel? (You see how much I don't
know?)

3.0 is an "addon" to 2.0. It does not require a new version of VS200x. It
works with VS2005.

The framework is free.
The CTP is free.

So there is not a financial reason not to do it.


3.0 runs on XP, WinServer2003, Vista and WinServer2008.

.......



"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:5239j35ig21sncjgamomcdaa8tgc8k0q8c (AT) 4ax (DOT) com...
You may recall that I did admit to being a newbie in dotNet. Of
course WCF seems to be dotNet 3.0 and I am currently tied to Visual
Studio 2005 and dotNet 2 and don't feel like shelling out another
thousand bucks or so just to be that current. My socket TCP/IP
messaging has worked well through Dos and C through Windows and C++
and translated easily into dotNet and C#. There is a limit on just
how much I am willing to upgrade the infrastructure of the project if
it doesn't show up in the user interface where you can far more easily
justify the cost. There is always the response "it works now, why
should I pay X thousand dollars extra to get the same thing?". Yes,
the infrastructure is the most important part, but it is also the
hardest to sell.

On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in
jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news3a7j3p9tpbjsldt4mq22ainphcp08s3hm (AT) 4ax (DOT) com...
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of
times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute
on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and
I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an
equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.






Reply With Quote
  #10  
Old   
r norman
 
Posts: n/a

Default Re: Remoting - how to access server data? - 11-09-2007 , 02:58 PM



That should do it. As that site says, "like most new technologies it
might not be obvious how one goes about experimenting with it for the
first time".

I am using the time until they give me a P.O. for the new system to
upgrade my skills, and the farther I can get (with moderate but not
excessive stress on my part), the better the result will be. WCF
sounds like the appropriate technology and I now have enough tutorial
information to go on my on.

Thanks a real big heap. You have been an enormous help.


On Fri, 9 Nov 2007 14:09:33 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Quote:
I googled "WCF Getting Started".

Found this:
http://www.thoughtshapes.com/WCF/GettingStarted.htm


"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:ffb9j3d02iubaa6omiuhkl1q7i8ug6ao5l (AT) 4ax (DOT) com...
On Fri, 9 Nov 2007 13:54:43 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

Does installing dotNet 3.0 on my system automatically give VS2005 the
ability to reference System.ServiceModel? (You see how much I don't
know?)

3.0 is an "addon" to 2.0. It does not require a new version of VS200x. It
works with VS2005.

The framework is free.
The CTP is free.

So there is not a financial reason not to do it.


3.0 runs on XP, WinServer2003, Vista and WinServer2008.

.......



"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:5239j35ig21sncjgamomcdaa8tgc8k0q8c (AT) 4ax (DOT) com...
You may recall that I did admit to being a newbie in dotNet. Of
course WCF seems to be dotNet 3.0 and I am currently tied to Visual
Studio 2005 and dotNet 2 and don't feel like shelling out another
thousand bucks or so just to be that current. My socket TCP/IP
messaging has worked well through Dos and C through Windows and C++
and translated easily into dotNet and C#. There is a limit on just
how much I am willing to upgrade the infrastructure of the project if
it doesn't show up in the user interface where you can far more easily
justify the cost. There is always the response "it works now, why
should I pay X thousand dollars extra to get the same thing?". Yes,
the infrastructure is the most important part, but it is also the
hardest to sell.

On Thu, 8 Nov 2007 20:56:55 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:

The follow the link...that I have at my Remoting Post.
He discusses why.....and refers to a "super particle beam" thing in
jest.
..

But .... you can do the same thing with WCF, via my "WCF Interfaced
Development".


You're letting the "Host" do the data collecting, and then pushing the
collected data to the client.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news3a7j3p9tpbjsldt4mq22ainphcp08s3hm (AT) 4ax (DOT) com...
On Thu, 8 Nov 2007 17:01:16 -0500, "sloan" <sloan (AT) ipass (DOT) net> wrote:


If you're going from the ground up, I'd go straight to WCF.

See my sample here:
http://sholliday.spaces.live.com/Blo...842A!158.entry

Its not a super-simple example like (you and I both) find alot of
times.

..

However, the objects that get sent across the wire are ... copies.

I'm not sure what you're getting at. Do you want the code to execute
on
the
server?
You want the objects to be connected to the server at all times?

Check this blog entry as well.
http://sholliday.spaces.live.com/Blo...842A!122.entry

But I still recommend going to WCF.




"r norman" <r_s_norman (AT) _comcast (DOT) net> wrote in message
news:cl07j318asoergdptl23u6morui437ammc (AT) 4ax (DOT) com...
I am converting a C++ MFC client-server application to C# dotNet and
I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.

In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an
equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.



Thanks for the pointer. I did browse through this newsgroup
(ms.public.distributed_apps) before posting and saw references
(probably yours) to WCF but didn't find much reference to it
elsewhere. But I'll take a look.

What I want to do is to have the client query the server for data
values that relate to various external equipment that the server is
communicating with. So the client proxy class has to communicate with
the host real class which interrogates the real server app to find out
what the current state of that external equipment is.





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.