Salve,
I have write a service Windows for the remoting.
I have a dll Server (OLD COM+)
For Configure DLL Server I user Config File
Es.
<configuratio n>
<system.runtime .remoting>
<application>
<channels>
<channel ref="tcp" port="50000"/>
</channels>
<service>
<wellknown type="DllServer .Classe1, DllServer" mode="Singleton "
objectUri="Clas se1.rem" />
<wellknown type="DllServer .Classe2, DllServer" mode="Singleton "
objectUri="Clas se2.rem" />
</service>
</application>
</system.runtime. remoting>
</configuration>
This is my code in the service:
Protected Overrides Sub OnStart(ByVal args() As String)
RemotingConfigu ration.Configur e("MyService.ex e.config")
Console.ReadLin e()
End Sub
If i start service windows this problem to me:
the service is started, but it stops. Some services stops itself if there
aren't operations to execute, this is, for example, the case of the "event
viewer" service application
WHY? 3 1496
hi John
what is it that the service do after loading configuration
It would have to make available me the DLL server for the calls client..
John Console.ReadLin e()
What do you expect this line to do?
A Service does not have a UI, I would suspect that line is throwing an
exception or worse it is not allowing the service's OnStart method to
complete in a timely method! Causing your service not to start. Do you see a
message in the Application Event Log that your service started or failed to
start? I would expect a failed to start message.
Matthew MacDonald's book "Microsoft Visual Basic .NET Progammer's Cookbook"
has a handful of topics on using Remoting within a Windows Service, other
then the Console.Readlin e, your code looks like it should work... Assuming
your config is correct...
You OnStart should just need:
Protected Overrides Sub OnStart(ByVal args() As String) RemotingConfigu ration.Configur e("MyService.ex e.config") End Sub
Hope this helps
Jay
"John Fred" <ge*@msn.com> wrote in message
news:eX******** ******@TK2MSFTN GP15.phx.gbl... Salve, I have write a service Windows for the remoting.
I have a dll Server (OLD COM+)
For Configure DLL Server I user Config File Es. <configuratio n> <system.runtime .remoting> <application> <channels> <channel ref="tcp" port="50000"/> </channels> <service> <wellknown type="DllServer .Classe1, DllServer" mode="Singleton " objectUri="Clas se1.rem" /> <wellknown type="DllServer .Classe2, DllServer" mode="Singleton " objectUri="Clas se2.rem" /> </service> </application> </system.runtime. remoting> </configuration>
This is my code in the service:
Protected Overrides Sub OnStart(ByVal args() As String) RemotingConfigu ration.Configur e("MyService.ex e.config") Console.ReadLin e() End Sub
If i start service windows this problem to me:
the service is started, but it stops. Some services stops itself if there aren't operations to execute, this is, for example, the case of the "event viewer" service application
WHY? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Linesh Gajera |
last post by:
Hi,
I have unique problem. I have configured RemotingServer running as
Console Application and my Remoting object access Oracle database. My
remoting object make call to Oracle database and returns result if i
run RemotingServer as Console Application. Then i configured
RemotingServer as Windows Service. My Windows Service starts fine, it
also configured Remoting Channels as well. Now problem is remoting
object makes call to oracle...
|
by: anders |
last post by:
Hi!
I have a config file that looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall" type="Interfaces, IMyFirstRemotableObj" objectUri="ControlCenter" />
</service>
|
by: Fadi |
last post by:
Backround:
I am trying to figure out how to do the equivalant of a classic COM
Local Server Singleton in .NET/C#. I created a coupld of simple Class
Libs that exposes public interfaces and hosted them in a Windows Forms
EXE. Create a Windows Forms client and both the Client and the Host
EXEs configure the remoting protocols through respective .config
files.
Problem:
I want to change the host from an Win Forms EXE to a Windows Service.
|
by: Mural Kumar via .NET 247 |
last post by:
(Type your message here)
--------------------------------
From: Mural Kumar
Which is the best way to make a remoting
server?
1)As a Windows service
2)As a simple exe, which will run in a system tray.
|
by: Stephajn Craig |
last post by:
Is it possible to apply remoting techniques to a Windows Service
Application?
I have an application that I'm building that is primarily ASP.NET based.
However, there are some functions that I want to have run all the time in
the background. So I am implementing a Windows service to accomplish this.
However, I'd like to expose some funtionality out of this Windows Service as
well. I'd like to be able to remote control it to a certain...
| |
by: Kirk |
last post by:
I'm trying to use a Web Service to be a Remoting client of an existing
..NET 2.0 server. But I get the following error when I try to use
System.Runtime.Remoting.Channels.Http in my WebService. The same code
works fine in a standalone app. I have inspected
System.Runtime.Remoting.dll with ildasm, and I can see the
....Channels.Http namespace there. I verified that the virtual
directory is configured to use v2.0.50727 (the error message...
|
by: Jason |
last post by:
Ok, for the life of me, I just don't understand what's going on. I want to
use remoting to send messages from a windows service to a windows form app,
but I just can't get it to work. So, here's what I have so far.
I created a small, remotable object that inherits from MarshalByRefObject.
It has a public subroutine that raises an event with a message attached:
Public Delegate Sub TestServiceEventHandler(ByVal Message As String)
...
|
by: nyhetsgrupper |
last post by:
I have written a windows service and want to expose a web based user
interface for this service. I then wrote a class library containing a
..net remoting server. The class library have a method named
StartRemotingServer(). To be able to call this method from the windows
service I need to reference the remoting class library, but for the
class library to be able to access the internal structures of the
windows service the class library...
|
by: José Joye |
last post by:
Hello,
What is the best way to stop a remoting server (Singleton SAO) that has been
started with RemotingConfiguration.Configure().
For sure, I want to do this without quitting the application :-)
In fact, at a given time based on an internal event, I would like to stop
the remoting functionality within my process.
Many thanks,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |