1 Reply Latest reply on Jul 13, 2015 4:07 PM by mr_future

    unable to register SwisPowerShell.dll

    mr_future

      Hello,

       

      After installing Solarwinds SDK on a fresh Server 2012 R2 installation, I found that SwisPowerShell.dll is not registered for x64 bit Powershell (but is registered for x86 Powershell).  When attempting to register the snapin for x64, the command errors out.  Any help would be appreciated.

       

      C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe /ShowCallStack "C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll"


      Microsoft (R) .NET Framework Installation utility Version 2.0.50727.7905

      Copyright (c) Microsoft Corporation.  All rights reserved.

       

      Running a transacted installation.


      Beginning the Install phase of the installation.

      See the contents of the log file for the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly's progress.

      The file is located at C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.InstallLog.

      Installing assembly 'C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'.

      Affected parameters are:

         assemblypath = C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll

         showcallstack =

         logfile = C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.InstallLog

         logtoconsole =

      An exception occurred while trying to find the installers in the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly.

      System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

         at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

         at System.Reflection.Module.GetTypes()

         at System.Configuration.Install.AssemblyInstaller.GetInstallerTypes(Assembly assem)

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

      Aborting installation for C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll.

       

       

      An exception occurred during the Install phase.

      System.InvalidOperationException: Unable to get installer types in the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly.

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

         at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)

         at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

         at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)

      The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..

         at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

         at System.Reflection.Module.GetTypes()

         at System.Configuration.Install.AssemblyInstaller.GetInstallerTypes(Assembly assem)

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

       

       

      The Rollback phase of the installation is beginning.

      See the contents of the log file for the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly's progress.

      The file is located at C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.InstallLog.

      Rolling back assembly 'C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'.

      Affected parameters are:

         assemblypath = C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll

         showcallstack =

         logfile = C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.InstallLog

         logtoconsole =

      An exception occurred while trying to find the installers in the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly.

      System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

         at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

         at System.Reflection.Module.GetTypes()

         at System.Configuration.Install.AssemblyInstaller.GetInstallerTypes(Assembly assem)

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

      Aborting installation for C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll.

      An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.

      System.InvalidOperationException: Unable to get installer types in the C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll assembly.

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

         at System.Configuration.Install.AssemblyInstaller.Rollback(IDictionary savedState)

         at System.Configuration.Install.Installer.Rollback(IDictionary savedState)

      The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..

         at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

         at System.Reflection.Module.GetTypes()

         at System.Configuration.Install.AssemblyInstaller.GetInstallerTypes(Assembly assem)

         at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()

      An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

       

       

      The Rollback phase completed successfully.

       

       

      The transacted install has completed.

      The installation failed, and the rollback has been performed.

        • Re: unable to register SwisPowerShell.dll
          mr_future

          Found a workaround.  On a machine where SwisPowerShell.dll was already registered, I exported the associated registry key and imported it into my other server.

           

          [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns]

           

          [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\SwisSnapIn]

          "PowerShellVersion"="2.0"

          "Vendor"="SolarWinds, Inc."

          "Description"="PowerShell Snap-in for the SolarWinds Information Service"

          "Version"="1.10.16.0"

          "ApplicationBase"="C:\\Program Files (x86)\\SolarWinds\\Orion SDK\\SWQL Studio"

          "AssemblyName"="SwisPowerShell, Version=1.10.16.0, Culture=neutral, PublicKeyToken=null"

          "ModuleName"="C:\\Program Files (x86)\\SolarWinds\\Orion SDK\\SWQL Studio\\SwisPowerShell.dll"