Application Exception: Invalid Class – when using eDrawings or PDM Preview

When using eDrawings or the PDM Preview tab you may see Application Exception: Invalid Class.  As this is generally caused by a Windows issue, repairing SOLIDWORKS, eDrawings or PDM will normally fail to resolve the issue. The following article will walk you through fixing this error by repairing the damaged part of Windows.

Application-Exception-Invalid-Class.png

The PDM preview and eDrawings will fail to load anything and you will get the message "Application Exception: Invalid Class." The viewing area will either remain blank or you will get a spinning circle rather than an image of the file. This happens generally because the Windows Management Instrumentation is damaged

Repair the Windows Management Instrumentation using Administrative Command Prompt

  1. First, confirm that the Windows Management Instrumentation (WMI) is damaged by using Run (Win+R) and enter "wmimgmt.msc"
    Run WMI.png
  2. Once WMI is open, right click on the WMI Control (local) and select properties

    WMI Properties.png
  3.  If the WMI is damaged you should see "Failed to initialize all required WMI classes"
    Failed to initialize all required WMI classes.png
  4. Now that you have confirmed the damage, open Command Prompt with Administrative Permissions
    Administrative Command Prompt.png
  5. Use CD to change directories and step into C:\windows\system32\wbem:
    CD C:\windows\system32\wbem
    Step into wbem.png
  6. Copy the text from the attached "Commands to repair WMI.txt" or copy the commands listed below into notepad, then cut them from notepad (this will remove formatting that may prevent the commands from working correctly) and paste into Command Prompt:

    regsvr32 /s %systemroot%\system32\scecli.dll
    regsvr32 /s %systemroot%\system32\userenv.dll
    regsvr32 cimwin32.dll
    mofcomp cimwin32.mof
    mofcomp cimwin32.mfl
    mofcomp rsop.mof
    mofcomp rsop.mfl
    for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s
    for /f %s in ('dir /b *.mof') do mofcomp %s
    for /f %s in ('dir /b *.mfl') do mofcomp %s
    regsvr32 wmisvc.dll
    wmiprvse /regserver  

  7. You may get a couple pop ups confirming dll registration, click ok in those.  When done go back and confirm your WMI properties now show "Successfully Connected to"
    WMI Successfully Connected.png
  8. Open eDrawings or the PDM Preview Tab and your file should now render.

Contact Us

For further assistance, please contact our HawkSupport team at 877-266-4469(US) or 866-587-6803(Canada) and support@hawkridgesys.com.

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.