Hallo zusammen,
Ich möchte einen Windows-Dienst installieren.
Installer-Klasse:
[RunInstaller(true)]
public class MailSRVInstaller : Installer
{
public MailSRVInstaller()
{
ServiceInstaller installer = new ServiceInstaller();
ServiceProcessInstaller process = new ServiceProcessInstaller();
installer.StartType = ServiceStartMode.Automatic;
installer.ServiceName = "Jungfrau-Soft MailSRV";
installer.Description = "MailMessageService for AgendaV1";
process.Account = ServiceAccount.LocalSystem;
Installers.Add(process);
Installers.Add(installer);
}
}
Wie aus dem Code zu ersehen ist, ist die Installer-Klasse public und mit dem RunInstallAtributte versehen, trotzdem bekomme ich beim Ausführen von InstallUtil.exe immer folgende Fehlermeldung:
Fehlermeldung:
Die Installationsphase wird gestartet.
Die Protokolldatei enthält den Fortschritt der Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll.
Die Datei befindet sich in E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.InstallLog.
Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll wird installiert.
Betroffene Parameter:
logtoconsole =
logfile = E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.InstallLog
assemblypath = E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll
Keine öffentlichen Installer mit dem RunInstallerAttribute.Yes-Attribut in der Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll gefunden.Die Installationsphase ist abgeschlossen, und die Commitphase beginnt.
Die Protokolldatei enthält den Fortschritt der Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll.
Die Datei befindet sich in E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.InstallLog.
Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll wird ausgeführt.
Betroffene Parameter:
logtoconsole =
logfile = E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.InstallLog
assemblypath = E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll
Keine öffentlichen Installer mit dem RunInstallerAttribute.Yes-Attribut in der Assembly E:\AGENDA_WIN_SRV\js.Agenda.WinSRV\bin\Debug\js.Agenda.Services.dll gefunden.
Die InstallState-Datei wird entfernt, da keine Installer vorhanden sind.Die Commitphase wurde erfolgreich abgeschlossen.
Die transaktive Installation ist abgeschlossen.
Kann mir jemand sagen wo der Fehler liegt, denn auch nach mehrtägiger Suche im Netz bin ich auf keine Lösung gestossen.
Gruss Alex
Hallo Maendler
Ist E: ein Netzlaufwerk? Probier doch mal die Installation von der lokalen Platte aus.
Gruß, Alf
Ok, hier gibt es einen Thread zu dem Thema:
Installation eines Dienstes funktioniert nicht
Probier das doch nochmal aus.