J
John Fred
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.
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="50000"/>
</channels>
<service>
<wellknown type="DllServer.Classe1, DllServer" mode="Singleton"
objectUri="Classe1.rem" />
<wellknown type="DllServer.Classe2, DllServer" mode="Singleton"
objectUri="Classe2.rem" />
</service>
</application>
</system.runtime.remoting>
</configuration>
This is my code in the service:
Protected Overrides Sub OnStart(ByVal args() As String)
RemotingConfiguration.Configure("MyService.exe.config")
Console.ReadLine()
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?
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.
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="50000"/>
</channels>
<service>
<wellknown type="DllServer.Classe1, DllServer" mode="Singleton"
objectUri="Classe1.rem" />
<wellknown type="DllServer.Classe2, DllServer" mode="Singleton"
objectUri="Classe2.rem" />
</service>
</application>
</system.runtime.remoting>
</configuration>
This is my code in the service:
Protected Overrides Sub OnStart(ByVal args() As String)
RemotingConfiguration.Configure("MyService.exe.config")
Console.ReadLine()
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?