eDrawings "invalid class" error.

If you see the below Application Exception Error, the contents of this article will show you how to resolve this error and continue smooth use of eDrawings.

image.png.cd48a3751e3642752dcd7693e46d7a87.png

First Check:

To check if the WMI service is started, go to Windows Start > type services > open Services Application > check if the service for Windows Management Instrument is started. If it has stopped, right click on the service and click Start.

A screenshot of the Windows services, showing a right-click on Windows Management Instrumentation, followed by the Start option

Second Check:

  1. Proceed to the following folder (enter the following in Windows Explorer):
    %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. In the System Configuration Utility (Start > Run, type MSCONFIG), ensure that you enabled the Windows Management Instrumentation/WMI services in the "Services" tab.
  4. Reboot the computer to rebuild the CFG.

 

Third Check:

To fix this issue, follow these steps:

  1. Open a Windows® command prompt as Administrator.
    A screenshot showing the option to click Run as administrator on the Command Prompt.
  2. From the command prompt, type ‘net stop winmgmt’ (without the quote marks) and press
    Enter.
    Command Prompt window with the command "net stop winmgmt".
    1. If you are notified that you are stopping other services, click ‘OK’.
  3. From the command prompt, type ‘winmgm /resetrepository’ (without the quote marks) and press Enter.
  4. From the command prompt, type ‘net start winmgmt’ and press Enter.

 

Fourth Check:

The solution is to use the CMD prompt to fix the files in the C:\windows\system32\wbem location as detailed below.

You can copy the entire script into the window, and it may take 1-2 minutes to complete.

STEP 1: Open the CMD Prompt as Admin and navigate to the folder by copying pasting:

Cd C:\windows\system32\wbem

A Command Prompt window showing navigation to the wbem directory.

STEP 2: Copy/paste these lines into the window and wait for the system to finish

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

 

If you require additional information, please contact Mecad Support - support@mecad.co.za 

 

Date: 10/09/2024