Cocreateinstance failed with error 80004002

I have  Windows Server 2012 that went somewhat stale update-wise (the most recent installed update dates back to June 2016). I am trying to get it patched up. The problem is that for some reason Windows Update refuses to acquire new updates. When I click on "check for updates", it shows the green scrolling bar under "Checking for updates..." and it can sit there for hours doing nothing (there even seems to be no disk activity.)

I have  Windows Server 2012 that went somewhat stale update-wise (the most recent installed update dates back to June 2016). I am trying to get it patched up. The problem is that for some reason Windows Update refuses to acquire new updates. When I
click on «check for updates», it shows the green scrolling bar under «Checking for updates…» and it can sit there for hours doing nothing (there even seems to be no disk activity.)

In the Windows Update log, I see this (no idea if this is at all relevant)
  2017-03-01    16:14:40:211    5476    1688    CltUI    FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
  2017-03-01    16:14:40:212    5476    1688    CltUI    WARNING: RegisterNetworkCostChangeNotification: Error 80004002

and the last thing it ever writes before going idle is

  2017-03-01    16:14:44:015    1232    167c    AU    Triggering AU detection through DetectNow API
  2017-03-01    16:14:44:015    1232    167c    AU    Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Pre-install notify} added to AU services list
  2017-03-01    16:14:44:015    1232    167c    AU    Will do the detection after current detection completes

If I interrupt it after a while, it follows up with:

 2017-03-01    16:20:16:089    1232    1958    Agent      * WARNING: Failed to filter search results, error = 0x8024000B
 2017-03-01    16:20:16:089    1232    191c    AU    ###########  AU: Uninitializing Automatic Updates   ###########
 2017-03-01    16:20:16:105    1232    1958    Agent    *********
 2017-03-01    16:20:16:105    1232    1958    Agent    **  END  **  Agent: Finding updates [CallerId = AutomaticUpdates]
 2017-03-01    16:20:16:105    1232    1958    Agent    *************
 2017-03-01    16:20:16:105    1232    1958    Agent    *************
 2017-03-01    16:20:16:105    1232    1958    Agent    ** START **  Agent: Finding updates [CallerId = AutomaticUpdates]
 2017-03-01    16:20:16:105    1232    1958    Agent    *********
 2017-03-01    16:20:16:105    1232    1958    Agent      * Online = No; Ignore download priority = No
 2017-03-01    16:20:16:105    1232    1958    Agent      * Criteria = «IsInstalled=0 and DeploymentAction=’Installation’ or IsPresent=1 and DeploymentAction=’Uninstallation’
or IsInstalled=1 and DeploymentAction=’Installation’ and RebootRequired=1 or IsInstalled=0 and DeploymentAction=’Uninstallation’ and RebootRequired=1»
 2017-03-01    16:20:16:105    1232    1958    Agent      * ServiceID = {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} Third party service
 2017-03-01    16:20:16:105    1232    1958    Agent      * Search Scope = {Machine & All Users}
 2017-03-01    16:20:16:105    1232    1958    Agent      * Caller SID for Applicability: S-1-5-18
 2017-03-01    16:20:16:105    1232    1958    Agent      * WARNING: Exit code = 0x8024000B
 2017-03-01    16:20:16:105    1232    1958    Agent    *********
 2017-03-01    16:20:16:105    1232    1958    Agent    **  END  **  Agent: Finding updates [CallerId = AutomaticUpdates]
 2017-03-01    16:20:16:105    1232    1958    Agent    *************
 2017-03-01    16:20:16:105    1232    1958    Agent    WARNING: WU client failed Searching for update with error 0x8024000b

I tried to roll back to a month-old backup and it seems to be broken already.

I tried to purge the Windows Update cache by stopping relevant services, deleting %WINDIR%/SoftwareDistribution and %WINDIR%/System32/catroot2, and restarting services. It still does not work, though this time log messages are different.

2017-03-01    16:21:33:849    1232    438    Service    ** START **  Service: Service startup
2017-03-01    16:21:33:849    1232    438    Service    *********
2017-03-01    16:21:33:849    1232    438    Agent      * WU client version 7.8.9200.17185
2017-03-01    16:21:33:849    1232    438    Agent      * Base directory: C:windowsSoftwareDistribution
2017-03-01    16:21:33:849    1232    438    Agent      * Access type: No proxy
2017-03-01    16:21:33:849    1232    438    Service    UpdateNetworkState Ipv6, cNetworkInterfaces = 4.
2017-03-01    16:21:33:849    1232    438    Service    UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2017-03-01    16:21:33:849    1232    438    Agent      * Network state: Connected
2017-03-01    16:21:33:849    1232    438    Setup    WARNING: SelfUpdate is in an error state
2017-03-01    16:21:33:849    1232    438    Service    UpdateNetworkState Ipv6, cNetworkInterfaces = 4.
2017-03-01    16:21:33:849    1232    438    Service    UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2017-03-01    16:21:34:068    1232    438    DtaStor    Default service for AU is {00000000-0000-0000-0000-000000000000}
2017-03-01    16:21:34:068    1232    438    DtaStor    Default service for AU is {9482F4B4-E343-43B6-B170-9A65BC822C77}
2017-03-01    16:21:34:068    1232    438    DtaStor    Data store successfully created
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Failed to add and register service 117cab2d-82b1-4b5a-a08c-4d62dbee7782 to the data store 0x8007007a
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Service Recovery: Attempting to add pending registration for service 117cab2d-82b1-4b5a-a08c-4d62dbee7782 to the data store
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Failed to add and register service 7971f918-a847-4430-9279-4a52d1efe18d to the data store 0x8007007a
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Service Recovery: Attempting to add pending registration for service 7971f918-a847-4430-9279-4a52d1efe18d to the data store
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Failed to add and register service 7971f918-a847-4430-9279-4a52d1efe18d to the data store 0x8007007a
2017-03-01    16:21:34:068    1232    438    Agent    WARNING: Service Recovery: Attempting to add pending registration for service 7971f918-a847-4430-9279-4a52d1efe18d to the data store
2017-03-01    16:21:34:068    1232    438    Agent    ***********  Agent: Initializing global settings cache  ***********
2017-03-01    16:21:34:068    1232    438    Agent      * Endpoint Provider: 00000000-0000-0000-0000-000000000000
2017-03-01    16:21:34:068    1232    438    Agent      * WSUS server: <NULL>
2017-03-01    16:21:34:068    1232    438    Agent      * WSUS status server: <NULL>
2017-03-01    16:21:34:068    1232    438    Agent      * Target group: (Unassigned Computers)
2017-03-01    16:21:34:068    1232    438    Agent      * Windows Update access disabled: No
(…snip…)
2017-03-01    16:21:42:576    5476    114c    CltUI    FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
2017-03-01    16:21:42:576    5476    114c    CltUI    WARNING: RegisterNetworkCostChangeNotification: Error 80004002
2017-03-01    16:21:44:686    1232    734    AU    Triggering AU detection through DetectNow API
2017-03-01    16:21:44:686    1232    734    AU    Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Pre-install notify} added to AU services list
2017-03-01    16:21:44:686    1232    734    AU    Piggybacking on an AU detection already in progress
2017-03-01    16:22:15:891    1232    80c    Misc    Validating signature for C:windowsSoftwareDistributionSelfUpdatewsus3setup.cab with dwProvFlags 0x00000080:
2017-03-01    16:22:15:891    1232    80c    Misc     Microsoft signed: NA
2017-03-01    16:22:15:891    1232    80c    Misc     Infrastructure signed: Yes
2017-03-01    16:22:15:953    1232    80c    Setup    Determining whether a new setup handler needs to be downloaded
2017-03-01    16:22:15:953    1232    80c    Setup    SelfUpdate handler is not found.  It will be downloaded
2017-03-01    16:22:15:953    1232    80c    Setup    Evaluating applicability of setup package «Package_for_KB2887537~31bf3856ad364e35~amd64~~6.2.1.6»
2017-03-01    16:22:15:969    1232    80c    Setup    Setup package «Package_for_KB2887537~31bf3856ad364e35~amd64~~6.2.1.6» is not applicable
2017-03-01    16:22:15:969    1232    80c    Setup    Evaluating applicability of setup package «Package_for_KB2887536~31bf3856ad364e35~amd64~~6.2.1.6»
2017-03-01    16:22:18:063    1232    80c    Setup    Setup package «Package_for_KB2887536~31bf3856ad364e35~amd64~~6.2.1.6» is not applicable
2017-03-01    16:22:18:063    1232    80c    Setup    Evaluating applicability of setup package «Package_for_KB2887535~31bf3856ad364e35~amd64~~6.2.1.10»
2017-03-01    16:22:19:422    1232    80c    Setup    Setup package «Package_for_KB2887535~31bf3856ad364e35~amd64~~6.2.1.10» is not applicable
2017-03-01    16:22:19:438    1232    80c    Setup    SelfUpdate check completed.  SelfUpdate is NOT required.
2017-03-01    16:22:19:578    1232    80c    PT    +++++++++++  PT: Synchronizing server updates  +++++++++++
2017-03-01    16:22:19:578    1232    80c    PT      + ServiceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2017-03-01    16:22:19:656    1232    80c    PT    WARNING: Cached cookie has expired or new PID is available
2017-03-01    16:22:19:719    1232    80c    Agent    Reading cached app categories using lifetime 604800 seconds
2017-03-01    16:22:19:719    1232    80c    Agent    Read 0 cached app categories
2017-03-01    16:30:44:365    1232    80c    Misc    WARNING: WinHttp: httpRead failed. error 0x80072ee2
2017-03-01    16:30:44:365    1232    80c    Misc    WARNING: WinHttp: DoFileDownload PerformDownload failed. error 0x80072ee2
2017-03-01    16:52:59:430    1232    80c    Misc    WARNING: WinHttp: httpRead failed. error 0x80072ee2
2017-03-01    16:52:59:430    1232    80c    Misc    WARNING: WinHttp: DoFileDownload PerformDownload failed. error 0x80072ee2
2017-03-01    16:55:24:131    1232    80c    Driver    Matched driver to device PCIVEN_8086&DEV_8D3A&SUBSYS_35C88086&REV_05
2017-03-01    16:55:24:131    1232    80c    Driver    Status: 0x4180200a, ProblemNumber: 00000000
2017-03-01    16:55:24:131    1232    80c    Driver    Matched driver to device PCIVEN_8086&DEV_6FD1&SUBSYS_6FD18086&REV_01
2017-03-01    16:55:24:131    1232    80c    Driver    Status: 0x1802000, ProblemNumber: 00000000
2017-03-01    16:55:24:131    1232    80c    Driver    Matched driver to device PCIVEN_8086&DEV_6FD1&SUBSYS_6FD18086&REV_01
2017-03-01    16:55:24:131    1232    80c    Driver    Status: 0x1802000, ProblemNumber: 00000000
(…snip…)
2017-03-01    16:55:24:178    1232    80c    Driver    Status: 0x180200a, ProblemNumber: 00000000
2017-03-01    16:55:24:178    1232    80c    Driver    Matched driver to device PCIVEN_8086&DEV_8D26&SUBSYS_35C88086&REV_05
2017-03-01    16:55:24:178    1232    80c    Driver    Status: 0x180200a, ProblemNumber: 00000000
2017-03-01    16:55:54:476    1232    80c    PT    +++++++++++  PT: Synchronizing extended update info  +++++++++++
2017-03-01    16:55:54:476    1232    80c    PT      + ServiceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2017-03-01    16:55:58:116    1232    80c    DtaStor    WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/10/6077712_67539bbaa7052f0026b6e124063192bc96ea9e1d.cab
for file Z1ObuqcFLwAmtuEkBjGSvJbqnh0= when file has not been previously added to the datastore
2017-03-01    16:55:58:116    1232    80c    DtaStor    WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/04/4970296_ca03258c4140d420d28973ac55f091a93e1a9efd.cab
for file ygMljEFA1CDSiXOsVfCRqT4anv0= when file has not been previously added to the datastore
2017-03-01    16:55:58:116    1232    80c    DtaStor    WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/04/4967244_b9018351a069cc0f006a57879dcfb1c488f78621.cab
for file uQGDUaBpzA8AaleHnc+xxIj3hiE= when file has not been previously added to the datastore
(…a few hundred more «DtaStor WARNING»s…)
2017-03-01    16:55:58:194    1232    80c    DtaStor    WARNING: Attempted to add URL http://download.windowsupdate.com/c/msdownload/update/others/2017/02/24214705_43024f1f23f8c8f93ea6c4b16759d1d643949e92.cab
for file QwJPHyP4yPk+psSxZ1nR1kOUnpI= when file has not been previously added to the datastore
2017-03-01    16:55:58:194    1232    80c    DtaStor    WARNING: Attempted to add URL http://download.windowsupdate.com/c/msdownload/update/others/2017/02/24106723_b9df018bea94e879f8b03daf86c9e918ed3155fa.cab
for file ud8Bi+qU6Hn4sD2vhsnpGO0xVfo= when file has not been previously added to the datastore
2017-03-01    20:01:47:783    5476    114c    CltUI    FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
2017-03-01    20:01:47:783    5476    114c    CltUI    WARNING: RegisterNetworkCostChangeNotification: Error 80004002

As of this writing, the last entry is 4 hours old and the service has not been doing anything all this time. Judging by timestamps, last thing it did was to download an EULA for Silverlight, at 16:56.

It is not apparent to me what exactly is going wrong and how to get it all fixed, short of a clean reinstall.

Any suggestions?

  • Remove From My Forums
  • Question

  • User-822657959 posted
    I create a wrapper «Interop.UTILSRVLIB.dll» for a COM component «UtilSrv». From my asp.net code, I call util = new UTILSRVLib.UtilClass(); util.Init();» In the Init() function of UtilSrv, I call CoCreateInstance() to create an instance of another COM component
    named «Foo.dll». It returns 0x80004002. I am sure the Foo.dll is registered correctly. I found a article KB229770 from Microsoft. PRB: CoGetClassObject for IClassFactory2 Returns E_NOINTERFACE for Configured Components SYMPTOMS When you call the CoGetClassObject
    function for the IClassFactory2 interface on components that are hosted in a COM+ application, the function fails with error 0x80004002 («No such interface supported» or E_NOINTERFACE). CAUSE This error occurs because the class factory wrapper for configured
    components only supports the IClassFactory interface, not the IClassFactory2 interface. The information in this article applies to: Microsoft COM, when used with: the operating system: Microsoft Windows 2000 But my Foo.dll doesn’t use implement IClassFactory2
    at all. Any idea? Thanks, Ling

Hi,

I just finished setting up to 2 2012 R2 servers. 1 is the WSUS server named wiin2012-B and the other 1 is win2012-C to just receive the updates. For some reason, even after approving updates and scheduling it to be installed at 4PM, it does not install the updates. Below is the log. Does it have something to do with »

WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037″?

2019-01-23 16:00:05:640   768 8f0 Misc =========== Logging initialized (build: 7.9.9600.19164, tz: +0800) ===========
2019-01-23 16:00:05:640   768 8f0 Misc   = Process: C:Windowssystem32svchost.exe
2019-01-23 16:00:05:640   768 8f0 Misc   = Module: c:windowssystem32wuaueng.dll
2019-01-23 16:00:05:640   768 8f0 Service *************
2019-01-23 16:00:05:640   768 8f0 Service ** START ** Service: Service startup
2019-01-23 16:00:05:640   768 8f0 Service *********
2019-01-23 16:00:05:891   768 8f0 IdleTmr Non-AoAc machine. Aoac operations will be ignored.
2019-01-23 16:00:05:942   768 8f0 Agent   * WU client version 7.9.9600.19164
2019-01-23 16:00:05:975   768 8f0 Agent WARNING: SleepStudyTracker: Machine is non-AOAC. Sleep study tracker disabled.
2019-01-23 16:00:05:975   768 8f0 Agent   * Base directory: C:WindowsSoftwareDistribution
2019-01-23 16:00:05:975   768 8f0 Agent   * Access type: No proxy
2019-01-23 16:00:05:975   768 8f0 Service UpdateNetworkState Ipv6, cNetworkInterfaces = 1.
2019-01-23 16:00:05:975   768 8f0 Service UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2019-01-23 16:00:05:975   768 8f0 Agent   * Network state: Connected
2019-01-23 16:00:06:187   768 8f0 Service UpdateNetworkState Ipv6, cNetworkInterfaces = 1.
2019-01-23 16:00:06:187   768 8f0 Service UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2019-01-23 16:00:06:844   768 8f0 Misc WARNING: Network Cost is assumed to be not supported as something failed with trying to get handles to wcmapi.dll
2019-01-23 16:00:06:859   768 cac Agent *********** Agent: Initializing global settings cache ***********
2019-01-23 16:00:06:859   768 cac Agent   * Endpoint Provider: 00000000-0000-0000-0000-000000000000
2019-01-23 16:00:06:859   768 cac Agent   * WSUS server: http://Win2012-B.sy.com:8530 Opens a new window
2019-01-23 16:00:06:859   768 cac Agent   * WSUS status server: http://Win2012-B.sy.com:8530 Opens a new window
2019-01-23 16:00:06:859   768 cac Agent   * Target group: (Unassigned Computers)
2019-01-23 16:00:06:859   768 cac Agent   * Windows Update access disabled: No
2019-01-23 16:00:06:969   768 8f0 WuTask WuTaskManager delay initialize completed successfully..
2019-01-23 16:00:06:984   768 cac AU     Timer: 31DA7559-FE27-4810-8FF6-987195B1FD98, Expires 2019-01-23 23:18:52, not idle-only, not network-only
2019-01-23 16:00:06:984   768 cac AU     Timer: CF1ABEC6-7887-4964-BB93-B2E21B31CEC1, Expires 2019-01-24 01:43:51, not idle-only, not network-only
2019-01-23 16:00:06:984   768 cac AU     Timer: 29A863E7-8609-4D1E-B7CD-5668F857F1DB, Expires 2019-01-24 01:43:48, not idle-only, not network-only
2019-01-23 16:00:07:346   768 8f0 Report CWERReporter::Init succeeded
2019-01-23 16:00:07:346   768 8f0 Agent *********** Agent: Initializing Windows Update Agent ***********
2019-01-23 16:00:07:421   768 8f0 DnldMgr Download manager restoring 0 downloads
2019-01-23 16:00:07:421   768 8f0 AU ########### AU: Initializing Automatic Updates ###########
2019-01-23 16:00:07:421   768 8f0 AU AIR Mode is disabled
2019-01-23 16:00:07:421   768 8f0 AU   # Policy Driven Provider: http://Win2012-B.sy.com:8530 Opens a new window
2019-01-23 16:00:07:421   768 8f0 AU   # Detection frequency: 22
2019-01-23 16:00:07:421   768 8f0 AU   # Approval type: Scheduled (Policy)
2019-01-23 16:00:07:421   768 8f0 AU   # Auto-install minor updates: Yes (User preference)
2019-01-23 16:00:07:421   768 8f0 AU   # Will interact with non-admins (Non-admins are elevated (User preference))
2019-01-23 16:00:07:843   768 8f0 AU WARNING: Failed to get Wu Exemption info from NLM, assuming not exempt, error = 0x80240037
2019-01-23 16:00:07:843   768 8f0 AU WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037
2019-01-23 16:00:07:875   768 8f0 WuTask ScheduledInstallTaskHandler, setting scheduled install attempt time to 2019-01-24 08:00:00, using automatic maintenance:False.
2019-01-23 16:00:07:968   768 8f0 AU AU finished delayed initialization
2019-01-23 16:00:07:968   768 8f0 AU Currently AUX is enabled — so not show any WU Upgrade notifications.
2019-01-23 16:00:07:986   768 8f0 AU WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037
2019-01-23 16:00:08:063   768 8f0 AU WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037
2019-01-23 16:00:08:078   768 8f0 WuTask ScheduledInstallTaskHandler, setting scheduled install attempt time to 2019-01-24 08:00:00, using automatic maintenance:False.
2019-01-23 16:00:08:093   768 cac AU Request to perform an AU scheduled install
2019-01-23 16:00:08:093   768 cac AU WARNING: Failed to get Wu Exemption info from NLM, assuming not exempt, error = 0x80240037
2019-01-23 16:00:08:111   768 278 DnldMgr Asking handlers to reconcile their sandboxes
2019-01-23 16:00:08:147   768 cac AU WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037
2019-01-23 16:00:08:222   768 cac AU WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037

attach_file
Attachment

WindowsUpdate.txt
1.23 MB

I have a similar problem on a server 2012 (Essentials) to that described in questions Windows Server 2012 checking for updates forever and windows 2012 server and wsus.

I have not had any auto Windows Updates for the last 3 months.

Originally  WU showed a red warning message about having not checked for updates giving a ‘last checked date’ 3 months prior (even although was set to auto download updates).   After carrying out various actions described in questions above and from many other sources I now have Windows update reporting ‘You are set to automatically download updates’ with ‘most recent’ and ‘updates installed’ showing ‘never’. WU never attempts to check for updates. When I click ‘check for updates’ it appears to start but never completes.
 The WindowsUpdate log shows the ‘FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002’ error’. One of the few things I have not done is;

wuauclt /ResetAuthorization /DetectNow

because the Microsoft instruction link prior to this suggested action does not exist anymore (http://windows.microsoft.com/en-IN/windows7/windows-update-error-80004002).  What instructions were in this link?

I am quite happy to start again on this problem feel free to suggest actions to try to fix this.

I have attached a WindowsUpdate log file.  The entries starting at 08:34 was after a reboot. The entries at 16:09 was after manually checking for updates.

When System Center Endpoint Protection (SCEP) updates are not applying and the following errors are mentioned, Windows Update is not configured right. Let’s first have a look at the errors:
WindowsUpdate.log
-CNetworkCostChangeHandler: RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
-RegisterNetworkCostChangeNotification: Error 80004002

-Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037
-Network Cost is assumed to be not supported as something failed with trying to handls to wcmapi.dll
-CSerializationHelper: InitSerialize failed: 0x80070002

UpdatesDeployment.log
-Job error (0x87d00692) received for assignment

WUAHandler.log
-Failed to Add Update Source for WUAgent of type (2) and id {}. Error = 0x87d00692

Long story short, there was an unknown WSUS policy in-place! After changing few settings everything was working immediately.


Just make sure «Allow Automatic Updates immediate installation» is enabled, and «Specify intranet Microsoft update service location» is pointing to the ConfigMgr SUP server on port 8530/8531. Then you will be fine after all. Hope it helps!

Source: SCEP updates pushed out to clients through SCCM 2012

Click here follow the steps to fix Malwarebytes Error Cocreateinstance Failed and related errors.

Instructions

 

To Fix (Malwarebytes Error Cocreateinstance Failed) error you need to
follow the steps below:

Step 1:

 
Download
(Malwarebytes Error Cocreateinstance Failed) Repair Tool
   

Step 2:

 
Click the «Scan» button
   

Step 3:

 
Click ‘Fix All‘ and you’re done!
 

Compatibility:
Windows 7, 8, Vista, XP

Download Size: 6MB
Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. To unlock all features and tools, a purchase is required.

Malwarebytes Error Cocreateinstance Failed Error Codes are caused in one way or another by misconfigured system files
in your windows operating system.

If you have Malwarebytes Error Cocreateinstance Failed errors then we strongly recommend that you

Download (Malwarebytes Error Cocreateinstance Failed) Repair Tool.

This article contains information that shows you how to fix
Malwarebytes Error Cocreateinstance Failed
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Malwarebytes Error Cocreateinstance Failed error code that you may receive.

Note:
This article was updated on 2023-02-03 and previously published under WIKI_Q210794

Contents

  •   1. What is Malwarebytes Error Cocreateinstance Failed error?
  •   2. What causes Malwarebytes Error Cocreateinstance Failed error?
  •   3. How to easily fix Malwarebytes Error Cocreateinstance Failed errors

What is Malwarebytes Error Cocreateinstance Failed error?

The Malwarebytes Error Cocreateinstance Failed error is the Hexadecimal format of the error caused. This is common error code format used by windows and other windows compatible software and driver vendors.

This code is used by the vendor to identify the error caused. This Malwarebytes Error Cocreateinstance Failed error code has a numeric error number and a technical description. In some cases the error may have more parameters in Malwarebytes Error Cocreateinstance Failed format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at the time of the error.

What causes Malwarebytes Error Cocreateinstance Failed error?

The Malwarebytes Error Cocreateinstance Failed error may be caused by windows system files damage. The corrupted system files entries can be a real threat to the well being of your computer.

There can be many events which may have resulted in the system files errors. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware. It can also be caused if your computer is recovered from a virus or adware/spyware
attack or by an improper shutdown of the computer. All the above actives
may result in the deletion or corruption of the entries in the windows
system files. This corrupted system file will lead to the missing and wrongly
linked information and files needed for the proper working of the
application.

How to easily fix Malwarebytes Error Cocreateinstance Failed error?

There are two (2) ways to fix Malwarebytes Error Cocreateinstance Failed Error:

Advanced Computer User Solution (manual update):

1) Start your computer and log on as an administrator.

2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.

3) In the new window, select «Restore my computer to an earlier time» option and then click Next.

4) Select the most recent system restore point from the «On this list, click a restore point» list, and then click Next.

5) Click Next on the confirmation window.

6) Restarts the computer when the restoration is finished.

Novice Computer User Solution (completely automated):

1) Download (Malwarebytes Error Cocreateinstance Failed) repair utility.

2) Install program and click Scan button.

3) Click the Fix Errors button when scan is completed.

4) Restart your computer.

How does it work?

This tool will scan and diagnose, then repairs, your PC with patent
pending technology that fix your windows operating system registry
structure.
basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <cstring>
#include <string>
#include <windows.h>
#include "tchar.h"

#import "TestZ.tlb" raw_interfaces_only
using namespace TestZ;


int _tmain(int argc, _TCHAR* argv[])
{
	std::cout << "start" << std::endl;
	CoInitialize(NULL);
	try {
		_StubRequest *stubRequest = NULL;
		std::cout << stubRequest << std::endl;

		std::cout << "//////////" << std::endl;
		HRESULT result = CoCreateInstance(__uuidof(StubRequest), NULL, CLSCTX_INPROC_SERVER, __uuidof(_StubRequest), reinterpret_cast<void**> (&stubRequest));
		std::cout << "//////////" << std::endl;

		//HRESULT from CoCreateInstance is 0x80004002

		if (SUCCEEDED(result)) {
			std::cout << "success" << std::endl;
		}
		else {
			std::cout << "failed" << std::endl;
		}
		stubRequest->doSomething();
		std::cout << "ok" << std::endl;
	}
	catch (_com_error &e) {
		std::cout << "error: " << e.Error() << std::endl;
		std::cout << "error message: " << e.ErrorMessage() << std::endl;
		std::cout << "error info: " << e.ErrorInfo() << std::endl;
	}

	CoUninitialize();
	return 0;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// Created by Microsoft (R) C/C++ Compiler Version 14.14.26429.4 (e5d5499a).
//
// c:usersdevdocumentsxamarintestdllconsoleapplication1debugtestz.tlh
//
// C++ source equivalent of Win32 type library TestZ.tlb
// compiler-generated file created 06/22/18 at 15:47:05 - DO NOT EDIT!

//
// Cross-referenced type libraries:
//
//  #import "C:WindowsMicrosoft.NETFrameworkv4.0.30319mscorlib.tlb"
//  #import unregistered typelib, LIBID {60E2085D-39FC-30C5-9DFD-5B097D4A04BC}
//

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

namespace TestZ {

//
// Forward references and typedefs
//

struct __declspec(uuid("ccd45295-11d4-37cf-b744-66bf56fc60ad"))
/* LIBID */ __TestZ;
struct /* coclass */ Initialiser;
struct /* coclass */ StubRequest;
struct __declspec(uuid("8a687914-a119-3874-a86b-a39d6a1bc48b"))
/* dual interface */ _Initialiser;
struct __declspec(uuid("845d446a-f39b-364a-a295-576aca2ef1e3"))
/* dual interface */ _StubRequest;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(_Initialiser, __uuidof(_Initialiser));
_COM_SMARTPTR_TYPEDEF(_StubRequest, __uuidof(_StubRequest));

//
// Type library items
//

struct __declspec(uuid("1d680efc-90be-35c8-9caf-b44b96534b54"))
Initialiser;
    // [ default ] interface _Initialiser
    // interface _Object

struct __declspec(uuid("7a542aa1-0fb8-35b9-b38f-d848f4548b4b"))
StubRequest;
    // [ default ] interface _StubRequest
    // interface _Object

struct __declspec(uuid("8a687914-a119-3874-a86b-a39d6a1bc48b"))
_Initialiser : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_toString (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall equals (
        /*[in]*/ VARIANT obj,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall hashCode (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall GetType (
        /*[out,retval]*/ struct _Type * * pRetVal ) = 0;
      virtual HRESULT __stdcall get_toString_2 (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall hashCode_2 (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall equals_2 (
        /*[in]*/ VARIANT obj,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall notifyAll ( ) = 0;
      virtual HRESULT __stdcall notify ( ) = 0;
      virtual HRESULT __stdcall wait ( ) = 0;
      virtual HRESULT __stdcall wait_2 (
        /*[in]*/ __int64 timeout ) = 0;
      virtual HRESULT __stdcall wait_3 (
        /*[in]*/ __int64 timeout,
        /*[in]*/ long nanos ) = 0;
      virtual HRESULT __stdcall getClass (
        /*[out,retval]*/ struct _Class * * pRetVal ) = 0;
      virtual HRESULT __stdcall get_ToString_3 (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall Equals_3 (
        /*[in]*/ VARIANT p1,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall GetHashCode (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall GetType_2 (
        /*[out,retval]*/ struct _Type * * pRetVal ) = 0;
};

struct __declspec(uuid("845d446a-f39b-364a-a295-576aca2ef1e3"))
_StubRequest : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_toString (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall equals (
        /*[in]*/ VARIANT obj,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall hashCode (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall GetType (
        /*[out,retval]*/ struct _Type * * pRetVal ) = 0;
      virtual HRESULT __stdcall get_toString_2 (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall hashCode_2 (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall equals_2 (
        /*[in]*/ VARIANT obj,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall notifyAll ( ) = 0;
      virtual HRESULT __stdcall notify ( ) = 0;
      virtual HRESULT __stdcall wait ( ) = 0;
      virtual HRESULT __stdcall wait_2 (
        /*[in]*/ __int64 timeout ) = 0;
      virtual HRESULT __stdcall wait_3 (
        /*[in]*/ __int64 timeout,
        /*[in]*/ long nanos ) = 0;
      virtual HRESULT __stdcall getClass (
        /*[out,retval]*/ struct _Class * * pRetVal ) = 0;
      virtual HRESULT __stdcall get_ToString_3 (
        /*[out,retval]*/ BSTR * pRetVal ) = 0;
      virtual HRESULT __stdcall Equals_3 (
        /*[in]*/ VARIANT p1,
        /*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
      virtual HRESULT __stdcall GetHashCode (
        /*[out,retval]*/ long * pRetVal ) = 0;
      virtual HRESULT __stdcall GetType_2 (
        /*[out,retval]*/ struct _Type * * pRetVal ) = 0;
      virtual HRESULT __stdcall doSomething ( ) = 0;
};

} // namespace TestZ

#pragma pack(pop) 

From the output, I can see that the StubRequest was created, because the application printed «new StubRequest». However, the HRESULT is always not successful, and there’s an exception instead of printing the line from doSomething().

Понравилась статья? Поделить с друзьями:
  • Coc nvim jedi error
  • Cobian backup zip error
  • Cobian backup hashed list of file names is invalid native error 00059
  • Coapi 2041 ncs expert ошибка
  • Coapi 2041 falscher sg codierindex ошибка ncs