Somehow I have ruined my OR install and cant get it back

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • milw2042
    Senior Member
    • May 2010
    • 110
    • St Paul, MN

    #1

    Somehow I have ruined my OR install and cant get it back

    Apparently I have deleted something that I thought was not important. I keep getting the same error message upon starting OR. I have reinstalled OR and all of my graphics card stuff. I am totally lost.




    Error: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    at System.Runtime.InteropServices.Marshal.ThrowExcept ionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(O bject o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObject.Initialize(Bool ean getObject)
    at System.Management.ManagementClass.GetInstances(Enu merationOptions options)
    at System.Management.ManagementClass.GetInstances()
    at ORTS.Viewer3D.UpdateAdapterInformation(GraphicsAda pter graphicsAdapter)
    at ORTS.RenderProcess.GDM_PreparingDeviceSettings(Obj ect sender, PreparingDeviceSettingsEventArgs e)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.OnPr eparingDeviceSettings(Object sender, PreparingDeviceSettingsEventArgs args)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Crea teDevice(GraphicsDeviceInformation newInfo)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Chan geDevice(Boolean forceCreate)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Micr osoft.Xna.Framework.IGraphicsDeviceManager.CreateD evice()
    at Microsoft.Xna.Framework.Game.Run()
    at ORTS.Viewer3D.Run(BinaryReader inf)
    at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
    at ORTS.Program.Start(UserSettings settings, String[] args)
    at ORTS.Program.Main(String[] args)
  • twpol
    Senior Member
    • Oct 2009
    • 434
    • United Kingdom

    #2
    Curious; I'd absolutely love to know what changed to cause that (as, I'm sure, would you) as it's a pretty fundamental failure of the WMI infrastructure within .NET (though probably nothing to do with .NET itself).

    It sounds like WMI/WBEM is broken so I would suggest checking the following things and re-test Open Rails after each one:
    1. Check the WMI service
      Open "services.msc" via Start > Run and find the "Windows Management Instrumentation" entry. Check that its status is "Running" and that its startup type is "Automatic". If it is not running, right-click it and try starting it.
    2. Rebuild the WMI database
      On Windows XP, stop the service, rename the directory "%windir%\System32\Wbem\Repository" to something else, e.g. "%windir%\System32\Wbem\Repository_bad", and restart the service.
      On Windows Vista and later, run the elevated command "winmgmt /salvagerepository".
    3. Re-register the WMI components - have a backup first!
      From an elevated command prompt, execute the following three commands:
      Code:
      cd /d %windir%\system32\wbem
      for %i in (*.dll) do RegSvr32 -s %i
      for %i in (*.exe) do %i /RegServer
      If you're on a 64bit version of Windows, repeat the three steps but with the "system32" replaced with "syswow64".


    The first two steps are not destructive so should be safe (but by all means ask others if you're not sure); the third step could potentially cause issues itself (I haven't tested it extensively) so make sure you have a backup first (you only need a backup of your registry, technically).

    And for anyone curious, these steps/ideas have been cribbed from http://windowsxp.mvps.org/repairwmi.htm.
    James Ross
    Open Rails Management Team
    sigpic

    Comment

    • milw2042
      Senior Member
      • May 2010
      • 110
      • St Paul, MN

      #3
      Thanks for the reply. I got stuck on step 2 (On Windows Vista and later, run the elevated command "winmgmt /salvagerepository".)

      Not sure what you're telling me to do there. I dont see any salvage repository option.

      I have the recovery disks for Vista, thats my last resort though..

      Comment

      • twpol
        Senior Member
        • Oct 2009
        • 434
        • United Kingdom

        #4
        You should start a Command Prompt elevated (type "cmd" in to the Start menu and press Control-Shift-Enter, then accept the User Account Control message) and run that command in it.
        James Ross
        Open Rails Management Team
        sigpic

        Comment

        • milw2042
          Senior Member
          • May 2010
          • 110
          • St Paul, MN

          #5
          When I ran the command: winmgmt /salvagerepository

          It tells me- The specified module cannot be found

          Comment

          • twpol
            Senior Member
            • Oct 2009
            • 434
            • United Kingdom

            #6
            That sounds like a problem. If you feel like you have a suitable backup of your registry (or your whole PC), I would suggest trying the 3rd option in my post.
            James Ross
            Open Rails Management Team
            sigpic

            Comment

            • milw2042
              Senior Member
              • May 2010
              • 110
              • St Paul, MN

              #7
              Originally posted by twpol
              That sounds like a problem. If you feel like you have a suitable backup of your registry (or your whole PC), I would suggest trying the 3rd option in my post.

              I will try that. Sometimes you just gotta flush the toilet!

              Thanks for the help. Hopefully I get this back to normal!

              Comment

              Working...