Resolve Invalid Class Error for eDrawings and PDM Preview

Article by Tashayla Openshaw on Mar 18, 2025

This article will go over how to resolve the Application Exception: Invalid Class error that can occur when trying to launch eDrawings. You may also see it occur in PDM when clicking on a file to view the preview. The PDM preview uses eDrawings, which is why it can be seen in PDM.

This error can appear simple, stating “Application Exception: Invalid Class” or lengthy with a string of other lines.

Application Exception Invalid Class Error for eDrawings and PDM Preview

Invalid Class Error for eDrawings and PDM Preview

The error is caused by the Windows Management Instrumentation becoming faulty in the machine.

There are a few different steps that can be taken to troubleshoot the issue. The first solution mentioned below resolves the error 99% of the time. If not, there are three other ways to try and resolve the error. However, we suggest getting your IT department involved when performing these steps.  

Solution 1

The first solution is to use the Command Prompt to fix the files in the location C:\Windows\System32\wbem. To do this follow the steps below.

  1. Go to Windows Start > type CMD > next to the Command Prompt app select Run as Administrator.

    Resolve Invalid Class Error for eDrawings and PDM Preview via Command Prompt

  2. In the Command Prompt, copy and paste the text below to navigate to the folder: 
    Cd C:\windows\system32\wbem

    Select Administrator Command Prompt Resolving Invalid Class Error

  3. On the next line in the Command Prompt, copy and paste all the lines below as a group and wait for the system to finish (keep in mind this may take a couple of minutes to run through):
    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

    • You may get a couple of RegSvr32 pop-ups, for these select OK for each one.

  4. Test launch of eDrawings.

Solution 2

The next solution to try is checking if the Windows Management Instrumentation (WMI) service is started. To do this, follow the steps below.

  1. Go to Windows Start > type Services > open Services Application.
  2. Check if the Service for Windows Management Instrumentation is started. If it is stopped, right-click on the service and click Start.

    Resolve Invalid Class Error for eDrawings and PDM Preview via Windows Management Instrumentation

  3. Test launch of eDrawings.

Solution 3

Similar to Solution 2, this one is checking to make sure the WMI service is on in the System Configuration utility.

  1. Open File Explorer, then copy and paste the following in the path: 
    %SystemRoot%\System32\Wbem\Repository

  2. Delete or rename the "$WinMgmt.CFG" file in the folder.
    • Leave the FS folder as is because the recreation of this CFG file requires these FS files.
  3. Next, go to Windows Start > type MSCONFIG > open the System Configurationutility.
  4. Ensure you enabled the Windows Management Instrumentation (WMI) services in the Services tab.

    Resolve Invalid Class Error for eDrawings and PDM Preview via System Configuration

  5. Reboot the computer to rebuild the CFG.
  6. Test launch of eDrawings.

Solution 4

The last solution to resolve this issue is running a few lines in the Command Prompt. To do this, follow these steps:

  1. Go to Windows Start > type CMD > next to the Command Prompt app select Run as Administrator.

    Resolve Invalid Class Error for eDrawings and PDM Preview via Command Prompt

  2. Copy and paste the highlighted text below in the Command Prompt then press Enter: 
    net  stop  winmgmt

    Administrator Command Prompt

    • If you are notified that you are stopping other services, click OK.

  3. On the next line, copy and paste the highlighted text below in the Command Prompt then press Enter: 
    winmgmt   /resetrepository
  4. On the final line, copy and paste the highlighted text below in the Command Prompt then press Enter:
    net start winmgmt
  5. Test launch of eDrawings.

I hope you found this article helpful. Check out more tips and tricks below. Additionally, join the GoEngineer Community to create forum posts, enter design contests, and answer questions from other SOLIDWORKS users. 

SOLIDWORKS CAD Cheat Sheet

SOLIDWORKS CAD Cheat Sheet

SHORTCUTS ⋅ MOUSE GESTURES ⋅ HOT KEYS

Our SOLIDWORKS CAD Cheat Sheet, featuring over 90 tips and tricks, will help speed up your process.

Related Articles

Optimizing Your Workstation Budget for Design & Engineering Applications: eDrawings Pro VR

SOLIDWORKS eDrawings – Viewing Rotated Explode Steps

Restoring eDrawings Preview in SOLIDWORKS PDM Vault View

eDrawings: SOLIDWORKS Viewer vs. Professional

SOLIDWORKS eDrawings for Mobile: Oh, The Places You'll Go

VIEW ALL ARTICLES

 

About Tashayla Openshaw

Tashayla Openshaw is a SOLIDWORKS Technical Support Engineer based out of our Headquarters in Salt Lake City, Utah. She earned her Bachelor’s degree in Mechanical Engineering from the University of Utah in 2018 and has been part of the GoEngineer family since February 2019.

View all posts by Tashayla Openshaw