[quoted text, click to view] >the service was installed on a server which doesnot have .net FRAMEWORK.
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] <anonymous@discussions.microsoft.com> wrote:
>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 Process
> 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)
> Try
> RemotingConfiguration.Configure("C:\Program Files\DIMPISETUP\Host.exe.config")
> 'After loading the remoting.config file enumerate the list of ClientActivated
> 'types and WellKnown types and list them in the list box on the form.
> ListClientActivatedServiceTypes()
> ListWellKnownServiceTypes()
>Catch exp As Exception
>
>End Try
>End Sub
>
>
> Private Sub ListClientActivatedServiceTypes()
> Dim entry As ActivatedServiceTypeEntry
> For Each entry In RemotingConfiguration.GetRegisteredActivatedServiceTypes()
> 'Me.lstOutput.Items.Add("Registered ActivatedServiceType: " & entry.TypeName)
> Next
> End Sub
>
> Private Sub ListWellKnownServiceTypes()
> Dim entry As WellKnownServiceTypeEntry
> For Each entry In RemotingConfiguration.GetRegisteredWellKnownServiceTypes()
> 'Me.lstOutput.Items.Add(entry.TypeName & " is available at " & entry.ObjectUri)
> Next
> End Sub
>
>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 ...
>Sasidhar
>