Menu

Model Save Error "Invalid Class"

2020-11-18
2024-01-08
  • Maxwell Cameron Jones

    I have been using DWSIM for a few weeks work through tutorials exercises, all functioning fine. Then suddenly now not able to save models.

    Instead the following message occurs, see screenshot attachments : SaveAs error
    Error saving file:System.AggregateException: One or more errors occurred. ---> System.Management.ManagementException: Invalid class

    Save Error , window "An unhandled error was raised" , Error message "Invalid class"

    I have uninstalled the program and reinstalled but the error persists.
    Is anyone able to help me with this error ?

     
  • Daniel Medeiros

    Daniel Medeiros - 2020-11-18

    It seems to be something with your computer as the error is coming from inside the Microsoft.VisualBasic library, not from DWSIM libraries. This error is happening when DWSIM tries to get the Operating System name.

     
  • Priyam Nayak

    Priyam Nayak - 2021-07-29

    Can you please point out the steps you followed to resolve the WMI class error? There are too many steps mentioned in the link you gave and I am not able to follow properly.

     
  • Priyam Nayak

    Priyam Nayak - 2021-07-29

    Daniel, while running the consistency check for WMI repository, I got the message that WMI repository is consistent. I am attaching the error message I get while trying to save the file.

     

    Last edit: Priyam Nayak 2021-07-29
  • Jyotirmoy Roy

    Jyotirmoy Roy - 2021-07-29

    Its still showing error and on rnning the poweshell with Yes option showing :"Credential Elevation Required"

     
    • Serhii Krushnevych

      It needs to change the ExecutionPolicy (if needed) and run the PowerShell console with Administrator privileges.
      ExecutionPolicy change to Unrestricted PS command:
      Set-ExecutionPolicy

      Today I received the same error "Invalid Class..." while saving the file.
      Tried to manually fix it by winmgmt, but it shows "all OK". Only the WMI-Fixer-Tool helps.

       

Log in to post a comment.