System Error: Cannot Supply Requested Class Factory

I have a userform I am designing in PowerPoint for 2007 & 2010 office. I am using a 32 bit system (XP) to design in Office 2007, and a 64 bit system (Win7) when designing in 2010. I have been working on this userform in both systems concurrently. I have not experienced any issues until today when I suddenly get the following error when I try to load the userform into the 32 bit system:

"System Error &H80040111 (-21472211231) Cannot Supply Requested Class Factory."

"Out of Memory"

None of the modules or userforms work. I can still "see" the code, but not the userform object itself. Is the problem because I am switching between 32 and 64 bit systems while editing? If so, is there anyway I can rectify this issue?

*UPDATE*

I think I have the problem narrowed down a bit. I tested my app on another 32 bit office 2007 system and the app worked just fine. It appears the problem is isolated to my system, which is a big relief. However, I still need to fix this issue.

It appears the TreeView Control 6.0 stopped working for some reason, which is why I am getting the class factory error. I can load the control into the Toolbox in VBA, but I can't place it on a userform. Any ideas what could be the problem?

I should also mention that this is not isolated to PowerPoint. I can't use this control in any of the office applications. I've run a registry cleaner and even tried to manually reregister the .OCX file, but nothing has worked. I'm wondering if I need to reinstall...

By "64-bit systems" do you mean Office, Windows or both?

My theory:

Treeview isn't one of the Office-supplied controls, I'm fairly certain.  It comes with Visual Basic ("classic") and possibly other languages.

In order to be licensed for use, the package that supplied the control would need to be installed on the PC.  If the control itself is registered, that'd permit it to be used by an app but not in design mode. 

Whether it works at all in a 64-bit environment is another story.

 


Steve Rindsberg PowerPoint MVP
PowerPoint FAQ
PPTools Add-ins for PowerPoint
PowerPoint Help: https://www.pptfaq.com/
PPTools: https://www.pptools.com
Presentation Guild: https://presentationguild.org

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

What's making this so strange is that up until today the control was working just fine. Then, I come back the next day and now it isn't. I didn't make any changes to my system and I can edit the project fine on other computers. Obviously something in my registry is corrupted. Perhaps the only solution is a reinstall of office.

By 64 bit I meant my operating system. But that doesn't appear to be the cause, as I have verified the project works on another identical system.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

>> What's making this so strange is that up until today the control was working just fine. Then, I come back the next day and now it isn't. I didn't make any changes to my system and I can edit the project fine on other computers.

Ah, I must have missed that part.  That IS weird.

Did a bit of googling on just the error message (and various bits of it) w/o much in the way of useful results.

Have you tried unregistering the control then reregistering it?


Steve Rindsberg PowerPoint MVP
PowerPoint FAQ
PPTools Add-ins for PowerPoint
PowerPoint Help: https://www.pptfaq.com/
PPTools: https://www.pptools.com
Presentation Guild: https://presentationguild.org

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I used the Regsvr32 to try and re register the control manually but nothing seems to be working. I can't run any projects that use the TreeView with that computer, and I have absolutely no idea why. I honestly think the problem lies in PowerPoint, as there really isn't any reason why it shouldn't be working. I'm guessing that I'll need to reinstall powerpoint. Hopefully that solves the problem.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I'd UN register the control then delete it before reinstalling, or at least rename it and put a copy someplace safe in case you need it back later.

If an update from MS delivered an incompatible version of the control, it'll be newer than the one the installer adds and won't be replaced.

 


Steve Rindsberg PowerPoint MVP
PowerPoint FAQ
PPTools Add-ins for PowerPoint
PowerPoint Help: https://www.pptfaq.com/
PPTools: https://www.pptools.com
Presentation Guild: https://presentationguild.org

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I should also mention that this is not isolated to PowerPoint. I can't use this control in any of the office applications. I've run a registry cleaner and even tried to manually reregister the .OCX file, but nothing has worked. I'm wondering if I need to reinstall...

 

If you have an older version of MSCOMCTL.OCX than the template wants or if this file was overwritten may be at the root of your problem.  

 

First things first, Update your build of MSCOMCTL.OCX to at least this version 

http://support.microsoft.com/kb/957924


 

Your version of MSCOMCTL.OCX currently installed may not support the new CLSID that was saved in a VBA project, it may only support the old one which was “kill-bit'ed” per this security advisory

Microsoft Security Advisory (969898) - Update Rollup for ActiveX Kill Bits

http://www.microsoft.com/technet/security/advisory/969898.mspx

That would cause the error

"System Error &H80040111 (-21472211231) Cannot Supply Requested Class Factory."

"Out of Memory

 

Fixing the issue should be pretty straightforward. 

1.  http://support.microsoft.com/kb/957924

2.  Reinstall (http://www.microsoft.com/technet/security/advisory/969898.mspx) or a later version that is greater or equal to build 6.1.98.16.

 

**Note after you install the patch (and documented in the KB), you  may  need to scan and remove any  *.exd files found under each user profile (Under Temp and Appdata directories).

 

Sincerely,

Susan

Microsoft Community Support

Susan

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 27, 2023 Views 7,099 Applies to: