Topic: ERROR The service terminated abnormally System.InvalidOperationExcept
Has anybody in counter and successfully resolved the following issue? Any help or suggestions would be greatly appreciated. Thanks.
-------
2016-05-21 10:00:38 INFO Configuration Result:
[Success] Name WmBridge
[Success] DisplayName WinRM Bridge Service
[Success] Description Provides a subset of WinRM operations accessible via Web API.
[Success] ServiceName WmBridge
2016-05-21 10:00:38 INFO Topshelf v3.1.135.0, .NET Framework v4.0.30319.34209
2016-05-21 10:00:38 INFO Installing WinRM Bridge Service service
2016-05-21 10:00:49 ERROR The service terminated abnormally
System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.InvalidOperationException: An exception occurred in the OnAfterInstall event handler of Topshelf.Runtime.Windows.HostInstaller. ---> System.TypeInitializationException: The type initializer for 'WmBridge.Service.Installer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at WmBridge.Service.Installer..cctor()
--- End of inner exception stack trace ---
at WmBridge.Service.Installer.Install() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Installer.cs:line 128
at WmBridge.Service.Program.<>c.<Main>b__0_1() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Program.cs:line 27
at Topshelf.InstallHostConfiguratorExtensions.<>c__DisplayClass9.<AfterInstall>b__8(InstallHostSettings settings)
at Topshelf.Hosts.InstallHost.ExecutePostActions()
at Topshelf.Runtime.Windows.WindowsHostEnvironment.<>c__DisplayClassc.<InstallService>b__5(InstallEventArgs x)
at Topshelf.Runtime.Windows.HostServiceInstaller.<>c__DisplayClass4.<InstallService>b__1(Object sender, InstallEventArgs args)
at System.Configuration.Install.Installer.OnAfterInstall(IDictionary savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
--- End of inner exception stack trace ---
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at Topshelf.Runtime.Windows.HostInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
--- End of inner exception stack trace ---
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
at Topshelf.Runtime.Windows.HostServiceInstaller.InstallService(Action`1 beforeInstall, Action`1 afterInstall, Action`1 beforeRollback, Action`1 afterRollback)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.InstallService(InstallHostSettings settings, Action beforeInstall, Action afterInstall, Action beforeRollback, Action afterRollback)
at Topshelf.Hosts.InstallHost.Run()
at Topshelf.HostFactory.Run(Action`1 configureCallback)
2016-05-21 10:01:07 INFO Configuration Result:
[Success] Name WmBridge
[Success] DisplayName WinRM Bridge Service
[Success] Description Provides a subset of WinRM operations accessible via Web API.
[Success] ServiceName WmBridge
2016-05-21 10:01:07 INFO Topshelf v3.1.135.0, .NET Framework v4.0.30319.34209
2016-05-21 10:01:07 ERROR The WmBridge service is not installed.
2016-05-21 10:01:07 INFO Configuration Result:
[Success] Name WmBridge
[Success] DisplayName WinRM Bridge Service
[Success] Description Provides a subset of WinRM operations accessible via Web API.
[Success] ServiceName WmBridge
2016-05-21 10:01:07 INFO Topshelf v3.1.135.0, .NET Framework v4.0.30319.34209
2016-05-21 10:01:08 INFO Installing WinRM Bridge Service service
2016-05-21 10:01:20 ERROR The service terminated abnormally
System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.InvalidOperationException: An exception occurred in the OnAfterInstall event handler of Topshelf.Runtime.Windows.HostInstaller. ---> System.TypeInitializationException: The type initializer for 'WmBridge.Service.Installer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at WmBridge.Service.Installer..cctor()
--- End of inner exception stack trace ---
at WmBridge.Service.Installer.Install() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Installer.cs:line 128
at WmBridge.Service.Program.<>c.<Main>b__0_1() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Program.cs:line 27
at Topshelf.InstallHostConfiguratorExtensions.<>c__DisplayClass9.<AfterInstall>b__8(InstallHostSettings settings)
at Topshelf.Hosts.InstallHost.ExecutePostActions()
at Topshelf.Runtime.Windows.WindowsHostEnvironment.<>c__DisplayClassc.<InstallService>b__5(InstallEventArgs x)
at Topshelf.Runtime.Windows.HostServiceInstaller.<>c__DisplayClass4.<InstallService>b__1(Object sender, InstallEventArgs args)
at System.Configuration.Install.Installer.OnAfterInstall(IDictionary savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
--- End of inner exception stack trace ---
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at Topshelf.Runtime.Windows.HostInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
--- End of inner exception stack trace ---
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
at Topshelf.Runtime.Windows.HostServiceInstaller.InstallService(Action`1 beforeInstall, Action`1 afterInstall, Action`1 beforeRollback, Action`1 afterRollback)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.InstallService(InstallHostSettings settings, Action beforeInstall, Action afterInstall, Action beforeRollback, Action afterRollback)
at Topshelf.Hosts.InstallHost.Run()
at Topshelf.HostFactory.Run(Action`1 configureCallback)
2016-05-21 10:04:03 INFO Configuration Result:
[Success] Name WmBridge
[Success] DisplayName WinRM Bridge Service
[Success] Description Provides a subset of WinRM operations accessible via Web API.
[Success] ServiceName WmBridge
2016-05-21 10:04:03 INFO Topshelf v3.1.135.0, .NET Framework v4.0.30319.34209
2016-05-21 10:04:03 INFO Installing WinRM Bridge Service service
2016-05-21 10:04:09 ERROR The service terminated abnormally
System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.InvalidOperationException: An exception occurred in the OnAfterInstall event handler of Topshelf.Runtime.Windows.HostInstaller. ---> System.TypeInitializationException: The type initializer for 'WmBridge.Service.Installer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at WmBridge.Service.Installer..cctor()
--- End of inner exception stack trace ---
at WmBridge.Service.Installer.Install() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Installer.cs:line 128
at WmBridge.Service.Program.<>c.<Main>b__0_1() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Program.cs:line 27
at Topshelf.InstallHostConfiguratorExtensions.<>c__DisplayClass9.<AfterInstall>b__8(InstallHostSettings settings)
at Topshelf.Hosts.InstallHost.ExecutePostActions()
at Topshelf.Runtime.Windows.WindowsHostEnvironment.<>c__DisplayClassc.<InstallService>b__5(InstallEventArgs x)
at Topshelf.Runtime.Windows.HostServiceInstaller.<>c__DisplayClass4.<InstallService>b__1(Object sender, InstallEventArgs args)
at System.Configuration.Install.Installer.OnAfterInstall(IDictionary savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
--- End of inner exception stack trace ---
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at Topshelf.Runtime.Windows.HostInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
--- End of inner exception stack trace ---
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
at Topshelf.Runtime.Windows.HostServiceInstaller.InstallService(Action`1 beforeInstall, Action`1 afterInstall, Action`1 beforeRollback, Action`1 afterRollback)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.InstallService(InstallHostSettings settings, Action beforeInstall, Action afterInstall, Action beforeRollback, Action afterRollback)
at Topshelf.Hosts.InstallHost.Run()
at Topshelf.HostFactory.Run(Action`1 configureCallback)
2016-05-21 10:14:38 INFO Configuration Result:
[Success] Name WmBridge
[Success] DisplayName WinRM Bridge Service
[Success] Description Provides a subset of WinRM operations accessible via Web API.
[Success] ServiceName WmBridge
2016-05-21 10:14:38 INFO Topshelf v3.1.135.0, .NET Framework v4.0.30319.34209
2016-05-21 10:14:38 INFO Installing WinRM Bridge Service service
2016-05-21 10:14:44 ERROR The service terminated abnormally
System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.InvalidOperationException: An exception occurred in the OnAfterInstall event handler of Topshelf.Runtime.Windows.HostInstaller. ---> System.TypeInitializationException: The type initializer for 'WmBridge.Service.Installer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at WmBridge.Service.Installer..cctor()
--- End of inner exception stack trace ---
at WmBridge.Service.Installer.Install() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Installer.cs:line 128
at WmBridge.Service.Program.<>c.<Main>b__0_1() in E:\TFS\Foundation\WindowsManagement\Source\WmBridge.Service\Program.cs:line 27
at Topshelf.InstallHostConfiguratorExtensions.<>c__DisplayClass9.<AfterInstall>b__8(InstallHostSettings settings)
at Topshelf.Hosts.InstallHost.ExecutePostActions()
at Topshelf.Runtime.Windows.WindowsHostEnvironment.<>c__DisplayClassc.<InstallService>b__5(InstallEventArgs x)
at Topshelf.Runtime.Windows.HostServiceInstaller.<>c__DisplayClass4.<InstallService>b__1(Object sender, InstallEventArgs args)
at System.Configuration.Install.Installer.OnAfterInstall(IDictionary savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
--- End of inner exception stack trace ---
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at Topshelf.Runtime.Windows.HostInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
--- End of inner exception stack trace ---
at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
at Topshelf.Runtime.Windows.HostServiceInstaller.InstallService(Action`1 beforeInstall, Action`1 afterInstall, Action`1 beforeRollback, Action`1 afterRollback)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.InstallService(InstallHostSettings settings, Action beforeInstall, Action afterInstall, Action beforeRollback, Action afterRollback)
at Topshelf.Hosts.InstallHost.Run()
at Topshelf.HostFactory.Run(Action`1 configureCallback)