473,806 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Channe ls
Imports System.Runtime. Remoting.Channe ls.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 .RegisterChanne l(chan)
RemotingConfigu ration.Register WellKnownServic eType( _
Type.GetType("R emotingSamples. HelloServer, object"), _
"SayHello", WellKnownObject Mode.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 3330
"Risen" <ri*****@21cn.c om> 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.Channe ls
Imports System.Runtime. Remoting.Channe ls.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****** ********@TK2MSF TNGP15.phx.gbl. ..
"Risen" <ri*****@21cn.c om> 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.Channe ls
Imports System.Runtime. Remoting.Channe ls.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
404
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 need to used Delegate type for my plugins and then rehister to that delegate from my main application. I delcare my DElegate type as follow :
2
1280
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 associated with them. However, we do not instantiate all of them using an 'As New' as was the norm earlier. This might sound like a silly question, but could someone thrash out this basic concept for me please.
0
978
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 System.Runtime.Remoting Imports System.Runtime.Remoting.Channels Imports System.Runtime.Remoting.Channels.TCP -> error! IDE report not found this namespace or type £¿£¿
4
1096
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
1795
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 ) : m_classInstance( NULL ), m_method( NULL ){}
1
1271
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
3163
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 for address reuse. Upon creating the TcpChannel I get the following exception: "An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.runtime.remoting.dll Additional information: Only one usage of each socket...
0
982
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 and don't have that package yet. Juacom99
0
2687
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 (DB2). So I used the following SQL: DECLARE GLOBAL TEMPORARY TABLE SESSION.SG_ADVICE (ID DECIMAL(11,0), ZAEHLER INTEGER) ON COMMIT PRESERVE ROWS ;
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.