473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help me! How to declare a TCPChannel Object

Hi,all,

How to declare a TCPChannel Object and implement it? In MSDN I found code
and try it In IDE,but it have some error,so can not compile it!

Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.TCP -> error! IDE report not found
this namespace or type £¿£¿

Namespace RemotingSamples
Public Class Sample
Shared Sub Main
Dim chan As TCPChannel -> error! IDE report not defined type!!
chan = New TCPChannel(8085)
ChannelServices.RegisterChannel(chan)
RemotingConfiguration.RegisterWellKnownServiceType ( _
Type.GetType("RemotingSamples.HelloServer, object"), _
"SayHello", WellKnownObjectMode.SingleCall)
System.Console.WriteLine("Hit to exit...")
System.Console.ReadLine()
End Sub
End Class
End Namespace

now,what can I do for it? How to ues the TCPChannel Object? Thanks a lot!!

Nov 21 '05 #1
2 3299
"Risen" <ri*****@21cn.com> schrieb:
How to declare a TCPChannel Object and implement it? In MSDN I found code
and try it In IDE,but it have some error,so can not compile it!

Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.TCP -> error! IDE report not
found
this namespace or type £¿£¿


Make sure your project contains a reference to
"System.Runtime.Remoting.dll". You can add a reference by selecting the
project in the solution explorer, choosing "Add reference..." from its
context menu, and selecting "System.Runtime.Remoting.dll" from the ".NET"
tab.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Thanks!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at>
??????:uy**************@TK2MSFTNGP15.phx.gbl...
"Risen" <ri*****@21cn.com> schrieb:
How to declare a TCPChannel Object and implement it? In MSDN I found code
and try it In IDE,but it have some error,so can not compile it!

Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.TCP -> error! IDE report not
found
this namespace or type £¿£¿


Make sure your project contains a reference to
"System.Runtime.Remoting.dll". You can add a reference by selecting the
project in the solution explorer, choosing "Add reference..." from its
context menu, and selecting "System.Runtime.Remoting.dll" from the ".NET"
tab.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: serge calderara | last post by:
Dear all, I have a VB.NET application which is able to identify and load dynamically other dll's. created for my application. Those dll's are working as plugins for my main application. I...
2
by: Ritu | last post by:
I am just migrating from ASP and VB to .NET and what confuses me the most is what is an Object and what is not. Most Data Types (even the basic ones) are treated like objects and have functions...
0
by: Risen | last post by:
Hi,all, How to declare a TCPChannel Object and implement it? In MSDN I found code and try it In IDE,but it have some error,so can not compile it! Imports System Imports...
4
by: mark | last post by:
Is there a way to create an instance of an object - say a windows form - from within a sub such that the object has class level scope? -- mark b
4
by: mickey | last post by:
I have the following template class which I use as a c++ generic callback. template< class T > class CallBack { public: typedef void ( T::*Method )( void ); CallBack( void ) :...
1
by: ron_werbin | last post by:
Hi there, In what cases will we want to declare our objects static? for example *.cpp: static String xStr; Than you for any help,
0
by: Douglas Peterson | last post by:
I'm using Remoting to implement a client/server. I recently discovered that I cannot connect a second instance client because it is trying to reuse the port and appearently the socket isn't setup...
0
by: juacom99 | last post by:
Hi. I'm making an aplication and i need to use the class TcpChannel but i can find even que package call System.RunTime.Remoting.TCP... Does someonn knows that is happening may be my dev is too old...
0
by: sgueder | last post by:
Hi there, hope anybody can help me: I want to create a temporary table, want to fill that table with data and finally I want to use that table as my base-table for running some selects on it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.