다음을 통해 공유


Error 80040200 When Regsvr Registering Com/Activex Controls

Sometimes when I try to register a com control, I get the following error dialog. 

[Window Title]
RegSvr32

[Content]
The module ".\crash.ocx" was loaded but the call to DllRegisterServer failed with error code 0x80040201.

For more information about this problem, search online using the error code as a search term.

[OK]

On Vista/Win 7 boxes, normal command prompt run without admin privilege.  Registering com control requires admin rights because it makes an entry in the overall system registry.  This error message is basically an error message on the lack of rights the current user has.  To fix, simply start an admin command line prompt and regsvr the control binary again.

Comments

  • Anonymous
    March 12, 2014
    Its not working with elevated mode as well. now its says that module could not be loaded.