Results 1 to 4 of 4

Thread: Service Install Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Newcastle, Australia
    Posts
    42

    Service Install Problem

    Hi,

    Trying to install a service (which does nothing at yet), I recieve the following error using the installutil.exe app.

    The text in bold is the important information I think......
    Running a transacted installation.

    Beginning the Install phase of the installation.
    See the contents of the log file for the d:\vb_apps\hl7 log\hl7messagequeueservi
    ce\bin\hl7messagequeueservice.exe assembly's progress.
    The file is located at d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messageq
    ueueservice.InstallLog.
    Installing assembly 'd:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messageque
    ueservice.exe'.
    Affected parameters are:
    assemblypath = d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messagequeues
    ervice.exe
    logfile = d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messagequeueservic
    e.InstallLog
    Installing service HL7MessageQueueService...
    Service HL7MessageQueueService has been successfully installed.
    Creating EventLog source HL7MessageQueueService in log Application...

    An exception occurred during the Install phase.
    System.ArgumentException: Source HL7MessageQueueService already exists on the lo
    cal computer.

    The Rollback phase of the installation is beginning.
    See the contents of the log file for the d:\vb_apps\hl7 log\hl7messagequeueservi
    ce\bin\hl7messagequeueservice.exe assembly's progress.
    The file is located at d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messageq
    ueueservice.InstallLog.
    Rolling back assembly 'd:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messageq
    ueueservice.exe'.
    Affected parameters are:
    assemblypath = d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messagequeues
    ervice.exe
    logfile = d:\vb_apps\hl7 log\hl7messagequeueservice\bin\hl7messagequeueservic
    e.InstallLog
    Restoring event log to previous state for source HL7MessageQueueService.
    Service HL7MessageQueueService is being removed from the system...
    Service HL7MessageQueueService was successfully removed from the system.

    The Rollback phase completed successfully.

    The transacted install has completed.
    The installation failed, and the rollback has been performed.
    The appliation is not running in the Services Panel.

    Can any one shed any light on whats going on?

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164
    This is interesting. My co-worker just uninstalled my service (at the client location), then when he tried to reinstall the service he got the same error. I haven't been able to figure it out either. Although, he did eventually get it to work by using the MSI installer rather than the setup.exe installer.
    -Shurijo

  3. #3
    Registered User
    Join Date
    Dec 2002
    Location
    St. Louis Mo. Metro area
    Posts
    11
    This may or may not help, but I have found that if the management console is open after you have uninstalled a service, it does not fully uninstall but merely marks it for deletion. If you close the management console then it gets fully deleted.....

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Newcastle, Australia
    Posts
    42
    Hi,

    A few things.... I think my code (maybe bad code) created an event log (separate to Application/Security/System) the first time it was run.. subsequent un-install did not remove this, and a new install tried to create it again, hence the error.

    The thing is.. you can't remove this from the event viewer, but can delete it from the Server Explorer within Studio.

    New installs have not created this log again.. strange.

    I have found that I need to restart the computer after uninstalls to "release" the objects otherwiae I am ot able to rebuild the application.

    Thanks for your time.

    The code I used to create the Event log was...
    ' Event Log Initilisation
    If Not EventLog.SourceExists("HL7MessageQueueService") Then
    EventLog.CreateEventSource("HL7MessageQueueService", "HL7MessageQueueServiceLog")
    End If

    EventLog.Source = "HL7MessageQueueService"
    EventLog.Log = "HL7MessageQueueServiceLog"

    and on service start...

    EventLog.WriteEntry("The service was Started (in OnStart method).")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width