Automation Error Classfactory Cannot Supply Requested Class Vb6.0
, .NET Framework > Visual Basic Question 0 Sign in to vote Operating System Version: Windows XP HomeProblem Application Name & Version: Visual Basic .Net 2003Error Messages: "ClassFactory cannot supply requested class"i have installed everything with no error and when i went to start a new project, i get the above error...i uninstalled and reinstalled multiple times and even used different setup discs and still get the same error...please help! Friday, September 30, 2005 5:18 AM Reply | Quote Answers 0 Sign in to vote It is possible that you have an old version of Windows Script. Can you try downloading the latest version of Windows Script at http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp?Regards, Friday, September 30, 2005 7:13 PM Reply | Quote Moderator All replies 0 Sign in to vote It is possible that you have an old version of Windows Script. Can you try downloading the latest version of Windows Script at http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp?Regards, Friday, September 30, 2005 7:13 PM Reply | Quote Moderator 0 Sign in to vote I received the same error message when I tried to uninstall my old printer drivers "ClassFactory cannot supply requested class". I downloaded and installed the latest Windows Script for XP but the error message persists, It makes no difference if I use the printer's uninstall drivers program or try removing them using the listing in Add & Remove Programs. I also tried uninstalling the drivers in Safe Mode as well but got same results. Any other suggestions? What exactly does this reference to "ClassFactory mean? Tuesday, June 06, 2006 7:09 AM Reply | Quote 0 Sign in to vote You've tried the recommended things to solve this problem. Sounds like you are a victim of DLL hell. A ClassFactory is something that lives inside an ActiveX module. A program that uses that module asks the ClassFactory to create an object it wants to use. That might fail if the prog
Error ClassFactory cannot supply requested class If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 6 of 6 Thread: run time error (80040111) Automation Error ClassFactory cannot supply requested class Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Sep 16th, 2005,04:18 PM #1 smtp View Profile View Forum Posts Thread Starter Lively Member Join Date Feb 2004 Posts 65 run time error (80040111) Automation Error ClassFactory cannot supply https://social.msdn.microsoft.com/Forums/vstudio/en-US/acc2136d-43ca-467f-bdfd-2e29b67df345/classfactory-cannot-supply-requested-class?forum=vbgeneral requested class Anyone ever get this error ? Run-time error '-2147221231 (80040111)': Automation error ClassFactory cannot supply requested class I get this error when i am doing a Set MyShortcut = VBsObj.CreateShortcut(ShortCutPath & ".lnk") I am only trying to create a shortcut here...and the server running this program is Windows 2000... Please advise.. Reply With Quote Sep 16th, 2005,04:22 PM #2 randem View Profile View Forum Posts Visit Homepage Banned Join Date Oct 2002 Location Maui, Hawaii Posts 11,385 Re: run time http://www.vbforums.com/showthread.php?360887-run-time-error-(80040111)-Automation-Error-ClassFactory-cannot-supply-requested-class error (80040111) Automation Error ClassFactory cannot supply requested c smtp, Perhaps this will help ClassFactory Reply With Quote Sep 16th, 2005,04:25 PM #3 smtp View Profile View Forum Posts Thread Starter Lively Member Join Date Feb 2004 Posts 65 Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class yah, i was reading that, i'd need the other guy to test it first before i know, but do you see anything wrong w. my code? Reply With Quote Sep 16th, 2005,04:35 PM #4 randem View Profile View Forum Posts Visit Homepage Banned Join Date Oct 2002 Location Maui, Hawaii Posts 11,385 Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class smtp, What code? Errors are not usually one line of code. They generally are a series of conditions that lead to one line having a problem. Post some code. Reply With Quote Oct 26th, 2007,08:30 AM #5 TBag63 View Profile View Forum Posts New Member Join Date Oct 2007 Posts 1 Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class This was happening to me as well. In VB I create two things that compromise my program. 1. .dll 2. .exe I made a code change in the .dll and simply wanted to push out the new .dll to my users that operate the program. As soon as I replace the .dll the executable complains with the error listed here. To fix this, I
supply the requested class http://microsoft.public.vb.ole.automation.narkive.com/rOoTDNQ8/err-2147221231-classfactory-cannot-supply-requested-class Cause One or more dll files are not registered. Solution If you are not confident working in DOS then please do not attempt the following instructions.Re-Register automation error all Service Accent dll's by following these steps:Start a command windowNavigate to the service accent folder (C:\Program Files\Service Accent)type the following command (and press enter)for %a in (vw*.dll) do regsvr32 /s %a automation error classfactory Related articles Error message "Failed to copy file vw_outlk.dll" when starting Service Accent Error message (Line 0) when you start Service Accent OLE automation server cannot create objects Registering Service Accent components using REGSVR32 Registering multiple DLL's Runtime error 367 "Can't load or register customer control acbtrv32.ocx" For additional resources and information, you can go to the Service Accent Support Centre Click here to go to the Service Accent Support Centre Copyright © 2003-2016 Vantage Computing Ltd. All rights reserved. The information contained on this web site is correct as of its publication date.
cannot supply requested classThis error is triggered by one of the following 2 statements when my VB6program loads Word :Set App = New Word.ApplicationOrigWordDocsPath = App.Options.DefaultFilePath(wdDocumentsPath)I only get this error with one user of my software (hundreds of otherinstallations run the same s/w, no problem).This particular user has Office 2003 on Win XP Home, I am sure I have otherusers with the same configuration and who run OK, is there something unusualabout this user's Windows, if so what?MS Knowledgebase lists this error under things like SQL server, datawarehousing and MAPI - non of which have any relevance to my user'senvironment. The Knowledgebase refers to version incompatibilities withMSOLAP80.DLL so I have tried putting our version of this .dll (whichobviously works on our development system) on the users system but this doesnot fix the problem.I'm at the end of my tether with this one and would appreciate any help atall.Thanks Jens Neuhalfen 2004-08-20 16:17:22 UTC PermalinkRaw Message Post by YendorErr 2147221231 Classfactory cannot supply requested class[snip]That happens quite frequently when dlls are replaced by incompatibleversions. Let me do a quick walkthrough:(working)1) call CoCreateObject({word.application clsid}) (which is "NewWord.Application")2) COM: Calls CoGetClassObject3) CoGetClassObjectlooks up HKCR\CLSID\{word.application clsid}\LocalServer32Which points to C:\ProgramFiles\MS\Office\Winword.exe4) CoGetClassObject: starts Winword.exe with "/EMBEDDING"5) WinWord: calls CoRegisterClassObject(...) to anounceit classfactory6) CoCreateObject: gets hold of the classfactory for{word.application clsid}7) Then it callsIClassFactory::CreateInstance({word.application clsid})8) Now the ClassFactory in WINWORD.EXE returns a newWord.Application object(not working)Now imagine