Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2003, 05:08 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .Net Remoting.

Hi forum,
I am using remoting which uses server activated objects. I am using single Call and tcpChannel. I dont want to use singleton due to other issues..
I am using multiple ports on a single channel. I am unable to scale up the server after 5 calls. I will send the code if you really need how and what am i doing. Please help me ASAP.:(
Thanks in advance,
Phaniraj
 
Old July 30th, 2003, 11:28 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you assigning a different name to each open port? I believe I had problems opening up multiple ports unless I used the following code to do so (hashtable):

Dim props As New Hashtable()
props.Add("name", "MyListener") ' Make this unique for each port
props.Add("port", CStr(m_iPortNumber))
m_objChannel = New TcpChannel(props, Nothing, Nothing)
ChannelServices.RegisterChannel(m_objChannel)
RemotingConfiguration.RegisterWellKnownServiceType (GetType(MyNameSpace.MyClass), "MyFunction.rem", WellKnownObjectMode.SingleCall)

Is this your issue?

 
Old July 30th, 2003, 03:51 PM
Authorized User
 
Join Date: Jul 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Indian Ocean Send a message via Yahoo to Indian Ocean
Default

kpphani,
pls send the code, it will better to clear a problem so i can send you an exact answer.


Indian Ocean
"Rago Me Daudate Firne Ke Hum Nahi Kayal;
Jo Aankh Hi Se Na Tapka To Fir Lahoo Kya!"
 
Old July 31st, 2003, 12:32 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried LocalSystem and LocalService - neither worked...

 
Old August 1st, 2003, 10:34 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got my new service to Start by creating a new WindowsService project from scratch. Plus, the following fields have to be set in order for the project to start:

1) Change the class name from Service1 to MyService (or whatever you want to call it.)

2) Change from
ServicesToRun = New System.ServiceProcess.ServiceBase() {New Service1()}

to
ServicesToRun = New System.ServiceProcess.ServiceBase() {New MyService()}

3) Change from:
Me.ServiceName = "Service1"

to
Me.ServiceName = "MyService"

4) In ProjectInstaller, change:
a) ServiceProcessInstaller1: Account to LocalService
b) ServiceInstaller1: DisplayName to MyService
c) ServiceInstaller1: ServiceName to MyService

As long as there are no outstanding errors in your OnStart method, it should start.


 
Old August 1st, 2003, 10:37 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and:
5) In project properties, change Startup Object from Service1 to MyService.







Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Remoting manisha2578 VB.NET 0 May 9th, 2005 11:23 PM
.NET Remoting vikyjain General .NET 0 March 7th, 2005 12:50 AM
.NET Remoting application in vb.net Tek4VB .NET Web Services 6 November 19th, 2003 09:59 AM
Remoting (.Net) Indian Ocean .NET Web Services 6 November 12th, 2003 03:27 PM
.NET Enterprise Development in VB.NET Remoting burkert All Other Wrox Books 0 June 24th, 2003 09:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.