Re: ClassFactory cannot supply requested class




"Keith Sheppard" <keith.sheppard@xxxxxxxxx> wrote in message
news:OxEKzYmAHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
One of my application's users is reporting that they get the message:

"ClassFactory cannot supply requested class"

I have been unable to reproduce the error on my machine. Does anyone have
any suggestions what could cause this particular error and where I should
be
looking? It sounds like a registry problem to me.


It is most commonly an "Automation" error, but can result from any attempt
to instantiate a COM component. It often comes about not because the primary
component cannot be instanced, but because components it is dependent on can
not be found (ie, another layer of indirection).

Anytime there is a 'COM' issue the registry is an active player, but that
doesn't mean it is the primal cause.

Look for components that are not correctly installed, registered, etc. Use
logging, error trapping, or other debugging tools to isolate and identify
the component. Using the tools found at www.sysinternals.com can also help
to track down the problem components.

hth
-ralph



.



Relevant Pages

  • Re: Runtime error
    ... the system registry has no ... If the attempt to instantiate is the result of a CreateObject or GetObject ... Many third-party applications will create an add-in and place it in the ... Office\Startup folder or use a COM add-in to integrate their ...
    (microsoft.public.word.application.errors)
  • Instantiating Remote component through COM
    ... I want to instantiate a component in Machine B from Machine A. i.e The ... orginal component is registered in Machine A and i want to create a object of ... I have made an entry in teh registry of machine B with the same class ID ... Deepak ...
    (microsoft.public.win32.programmer.ole)
  • Instantiating Remote Objects through COM
    ... I want to instantiate a component in Machine B from Machine A. i.e The ... orginal component is registered in Machine A and i want to create a object of ... I have made an entry in teh registry of machine B with the same class ID ... Deepak ...
    (microsoft.public.win32.programmer.ole)
  • Instantiating Remote Objects through COM
    ... I want to instantiate a component in Machine B from Machine A. i.e The ... orginal component is registered in Machine A and i want to create a object of ... I have made an entry in teh registry of machine B with the same class ID ... Deepak ...
    (microsoft.public.win32.programmer.ole)
  • Re: Creating COM object written in C#
    ... I am using an ASP page that has JavaScript to instantiate the ... I think it goes to the registry to look up the progid. ... public interface MyClass_Interface ... I am compiling this in Visual Studio 2005 and then running regasm. ...
    (microsoft.public.dotnet.languages.csharp)