all groups > dotnet remoting > june 2004 >
You're in the

dotnet remoting

group:

Remoting / Windows service Error


Remoting / Windows service Error Sasidhar
6/7/2004 6:51:05 AM
dotnet remoting: Hi Gurus
I have an application which runs as a windows service. The windows service has remoting host

First when I wrote the application it was like this.

1. Windows service starts and OnStart I stsrt the Host.exe(Remoting host
the code in onstart is as follows.

Dim myprocess As Proces
myprocess.Start("C:\Program Files\DIMPISETUP\Host.exe"
RemotingConfiguration.Configure("C:\Program Files\DIMPISETUP\host.exe.config"

the service was installed on a server which doesnot have .net FRAMEWORK
It works fine when its started /Rebooted

It used to work it had a bug. When the service is requested for shutdown it would give an error and indicates stopping in services panel

Now I Changed the way it starts ie, when the service starts i moved the logic from host.exe to the service now it looks like this..

Protected Overrides Sub OnStart(ByVal args() As String
Tr
RemotingConfiguration.Configure("C:\Program Files\DIMPISETUP\Host.exe.config"
'After loading the remoting.config file enumerate the list of ClientActivate
'types and WellKnown types and list them in the list box on the form
ListClientActivatedServiceTypes(
ListWellKnownServiceTypes(
Catch exp As Exceptio

End Tr
End Su

Private Sub ListClientActivatedServiceTypes(
Dim entry As ActivatedServiceTypeEntr
For Each entry In RemotingConfiguration.GetRegisteredActivatedServiceTypes(
'Me.lstOutput.Items.Add("Registered ActivatedServiceType: " & entry.TypeName
Nex
End Su

Private Sub ListWellKnownServiceTypes(
Dim entry As WellKnownServiceTypeEntr
For Each entry In RemotingConfiguration.GetRegisteredWellKnownServiceTypes(
'Me.lstOutput.Items.Add(entry.TypeName & " is available at " & entry.ObjectUri
Nex
End Su

Now the problem is that when i try to install this on the server it gives me error saying..
Installation interrupted. and comes out of installation

My question is "Is it an Framework Issue? Should I Install the framework on the server?

If I use Method1 I need not install the frame work but shutting down the service is a problem
If I use second method it dosen't allow me to install the service

Thanks in advance for Suggestions/Information ..
Sasidha

Re: Remoting / Windows service Error Allen Anderson
6/7/2004 1:02:45 PM
[quoted text, click to view]

if it does not have the .net framework installed, you can't be using
..net remoting.

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com


On Mon, 7 Jun 2004 06:51:05 -0700, "Sasidhar"
[quoted text, click to view]
AddThis Social Bookmark Button